]> www.infradead.org Git - users/willy/xarray.git/commit
igc: reinit_locked() should be called with rtnl_lock
authorSasha Neftin <sasha.neftin@intel.com>
Tue, 20 Oct 2020 13:34:00 +0000 (16:34 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 11 Mar 2021 17:37:48 +0000 (09:37 -0800)
commit6da262378c99b17b1a1ac2e42aa65acc1bd471c7
tree15f113ee3da6cedcbe380637a2314c7118b87310
parent47142ed6c34d544ae9f0463e58d482289cbe0d46
igc: reinit_locked() should be called with rtnl_lock

This commit applies to the igc_reset_task the same changes that
were applied to the igb driver in commit 024a8168b749 ("igb:
reinit_locked() should be called with rtnl_lock")
and fix possible race in reset subtask.

Fixes: 0507ef8a0372 ("igc: Add transmit and receive fastpath and interrupt handlers")
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c