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:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| bpf.c | ||
| bus.c | ||
| dev.c | ||
| fib.c | ||
| health.c | ||
| ipsec.c | ||
| netdev.c | ||
| netdevsim.h | ||