]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iavf: fix double-release of rtnl_lock
authorJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 02:18:06 +0000 (18:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:16:10 +0000 (20:16 +0100)
commita5a6dc4dc2938bd185593d1c5c40c29967b29fb4
tree62a3ad96a44401d8d983eca60c93bd268baec1d8
parent6aba31a7c72e521bb089fd8a209587d62ffdfaca
iavf: fix double-release of rtnl_lock

[ Upstream commit f1340265726e0edf8a8cef28e665b28ad6302ce9 ]

This code does not jump to exit on an error in iavf_lan_add_device(),
so the rtnl_unlock() from the normal path will follow.

Fixes: b66c7bc1cd4d ("iavf: Refactor init state machine")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/iavf/iavf_main.c