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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:31:57 +0000 (14:31 +0200)
commitd85ffade499ada9cc7c21a77611cc3fcf3f66a3a
tree24f35ed02fc12e01704e9cf0f1a444ca2d8be2fc
parent4c91fc60e3f60be4cfcf180c247de97995b1ed00
igc: reinit_locked() should be called with rtnl_lock

[ Upstream commit 6da262378c99b17b1a1ac2e42aa65acc1bd471c7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igc/igc_main.c