mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 18:26:42 +00:00
Merge branch 'ionic-minor-code-fixes'
Shannon Nelson says: ==================== ionic: minor code fixes These are a couple of code fixes for the ionic driver. ==================== Link: https://patch.msgid.link/20241212213157.12212-1-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
cb85f2b897
@ -277,7 +277,10 @@ void ionic_dev_teardown(struct ionic *ionic)
|
||||
idev->phy_cmb_pages = 0;
|
||||
idev->cmb_npages = 0;
|
||||
|
||||
destroy_workqueue(ionic->wq);
|
||||
if (ionic->wq) {
|
||||
destroy_workqueue(ionic->wq);
|
||||
ionic->wq = NULL;
|
||||
}
|
||||
mutex_destroy(&idev->cmb_inuse_lock);
|
||||
}
|
||||
|
||||
|
@ -961,8 +961,8 @@ static int ionic_get_module_eeprom(struct net_device *netdev,
|
||||
len = min_t(u32, sizeof(xcvr->sprom), ee->len);
|
||||
|
||||
do {
|
||||
memcpy(data, xcvr->sprom, len);
|
||||
memcpy(tbuf, xcvr->sprom, len);
|
||||
memcpy(data, &xcvr->sprom[ee->offset], len);
|
||||
memcpy(tbuf, &xcvr->sprom[ee->offset], len);
|
||||
|
||||
/* Let's make sure we got a consistent copy */
|
||||
if (!memcmp(data, tbuf, len))
|
||||
|
@ -3869,8 +3869,8 @@ int ionic_lif_register(struct ionic_lif *lif)
|
||||
/* only register LIF0 for now */
|
||||
err = register_netdev(lif->netdev);
|
||||
if (err) {
|
||||
dev_err(lif->ionic->dev, "Cannot register net device, aborting\n");
|
||||
ionic_lif_unregister_phc(lif);
|
||||
dev_err(lif->ionic->dev, "Cannot register net device: %d, aborting\n", err);
|
||||
ionic_lif_unregister(lif);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user