]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:30:18 +0000 (14:30 +0200)
commita45d0550d516720aeb0d66df74ee4ebb7bfc0500
tree3c575480e5dc2ecc9faa1171dedf46132671ddf5
parent46e36a4427334bbab85aa02a99fdd8278b7664ad
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