mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
931027820e
Bernard reported that trying to unload rose module would lead
to infamous messages:
unregistered_netdevice: waiting for rose0 to become free. Usage count = xx
This patch solves the issue, by making sure each socket referring to
a netdevice holds a reference count on it, and properly releases it
in rose_release().
rose_dev_first() is also fixed to take a device reference
before leaving the rcu_read_locked section.
Following patch will add ref_tracker annotations to ease
future bug hunting.
Fixes:
|
||
---|---|---|
.. | ||
af_rose.c | ||
Makefile | ||
rose_dev.c | ||
rose_in.c | ||
rose_link.c | ||
rose_loopback.c | ||
rose_out.c | ||
rose_route.c | ||
rose_subr.c | ||
rose_timer.c | ||
sysctl_net_rose.c |