]> Git Repo - linux.git/commit
iavf: fix double-release of rtnl_lock
authorJakub Kicinski <[email protected]>
Thu, 3 Dec 2020 02:18:06 +0000 (18:18 -0800)
committerTony Nguyen <[email protected]>
Thu, 17 Dec 2020 22:12:55 +0000 (14:12 -0800)
commitf1340265726e0edf8a8cef28e665b28ad6302ce9
tree1ebc4d95aa9eb813369f9eec1f6b8f9aa8ece6bc
parent3ac874fa84d1baaf0c0175f2a1499f5d88d528b2
iavf: fix double-release of rtnl_lock

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 <[email protected]>
Reviewed-by: Tony Nguyen <[email protected]>
Tested-by: Konrad Jankowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
drivers/net/ethernet/intel/iavf/iavf_main.c
This page took 0.066022 seconds and 4 git commands to generate.