linux/drivers/net/netdevsim
Taehee Yoo 2c9d8e01f0 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: e05b2d141f ("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>
2020-07-21 16:00:43 -07:00
..
Makefile
bpf.c
bus.c
dev.c netdevsim: Register control traps 2020-06-01 11:49:23 -07:00
fib.c
health.c
ipsec.c
netdev.c netdevsim: fix unbalaced locking in nsim_create() 2020-07-21 16:00:43 -07:00
netdevsim.h netdevsim: Add support for setting of packet trap group parameters 2020-03-30 17:54:58 -07:00