]> git.baikalelectronics.ru Git - kernel.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)
commitd5596646625c6ec67d5b4a5f9974fbc835d5ce11
tree15f113ee3da6cedcbe380637a2314c7118b87310
parent031b4e89599e58f1e021fce7e5f511d2b778c69a
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 dfc571cf22be ("igb:
reinit_locked() should be called with rtnl_lock")
and fix possible race in reset subtask.

Fixes: 2e0b2b437ff4 ("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