aboutsummaryrefslogtreecommitdiff
path: root/lib/bcd.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@gmx.de>2010-09-18 21:01:20 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-20 16:29:50 -0700
commit399fb5b445370ddcc93221e339d02736f55b9bb8 (patch)
tree41fc189a84140a726c5b88b79fc51ebaf9b60099 /lib/bcd.c
parent47f621dddc0b5ce3be4592a58e5f73707a83ad41 (diff)
Staging: batman-adv: count batman_if list queries as reference
The return of get_batman_if_by_netdev and get_active_batman_if leaks a pointer from the rcu protected list of interfaces. We must protect it to prevent a too early release of the memory. Those functions must increase the reference counter before rcu_read_unlock or it may be to late to prevent a free. hardif_add_interface must also increase the reference count for the returned batman_if to make the behaviour consistent. Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/bcd.c')
0 files changed, 0 insertions, 0 deletions