diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-02-10 14:33:51 +0000 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-03-05 12:50:07 +0100 |
commit | ed75ccbe26f4a672a41556120390e67c80a2c441 (patch) | |
tree | 3f4f844d2311e662b4c42e7a275188d1346ac77d /net/sched/sch_drr.c | |
parent | 7d2b554826195372764910da2f0dcb0d9b869108 (diff) | |
download | blackbird-op-linux-ed75ccbe26f4a672a41556120390e67c80a2c441.tar.gz blackbird-op-linux-ed75ccbe26f4a672a41556120390e67c80a2c441.zip |
batman-adv: Correct rcu refcounting for batman_if
It might be possible that 2 threads access the same data in the same
rcu grace period. The first thread calls call_rcu() to decrement the
refcount and free the data while the second thread increases the
refcount to use the data. To avoid this race condition all refcount
operations have to be atomic.
Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/sched/sch_drr.c')
0 files changed, 0 insertions, 0 deletions