commit | 2c9d8e01f0c6017317eee7638496173d4a64e6bc | [log] [tgz] |
---|---|---|
author | Taehee Yoo <ap420073@gmail.com> | Tue Jul 21 14:51:50 2020 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 21 16:00:43 2020 -0700 |
tree | 27d0fc555fabf7010c6a04f3d79588b28c002524 | |
parent | 3506b2f42dff66ea6814c3dfa1988bafb79e6f88 [diff] |
netdevsim: fix unbalaced locking in nsim_create() In the nsim_create(), rtnl_lock() is called before nsim_bpf_init(). If nsim_bpf_init() is failed, rtnl_unlock() should be called, but it isn't called. So, unbalanced locking would occur. Fixes: e05b2d141fef ("netdevsim: move netdev creation/destruction to dev probe") Signed-off-by: Taehee Yoo <ap420073@gmail.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>