File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
drivers/net/ethernet/broadcom/bnxt Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13205,8 +13205,6 @@ static void bnxt_remove_one(struct pci_dev *pdev)
13205
13205
bnxt_free_hwrm_resources (bp );
13206
13206
bnxt_ethtool_free (bp );
13207
13207
bnxt_dcb_free (bp );
13208
- kfree (bp -> edev );
13209
- bp -> edev = NULL ;
13210
13208
kfree (bp -> ptp_cfg );
13211
13209
bp -> ptp_cfg = NULL ;
13212
13210
kfree (bp -> fw_health );
Original file line number Diff line number Diff line change @@ -317,9 +317,11 @@ static void bnxt_aux_dev_release(struct device *dev)
317
317
{
318
318
struct bnxt_aux_priv * aux_priv =
319
319
container_of (dev , struct bnxt_aux_priv , aux_dev .dev );
320
+ struct bnxt * bp = netdev_priv (aux_priv -> edev -> net );
320
321
321
322
ida_free (& bnxt_aux_dev_ids , aux_priv -> id );
322
323
kfree (aux_priv -> edev -> ulp_tbl );
324
+ bp -> edev = NULL ;
323
325
kfree (aux_priv -> edev );
324
326
kfree (aux_priv );
325
327
}
You can’t perform that action at this time.
0 commit comments