diff options
author | Linus Lüssing <linus.luessing@ascom.ch> | 2011-02-13 21:13:02 (GMT) |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-03-05 11:50:10 (GMT) |
commit | 5d02b3cdfafeb23ab7cf43ef1d2118007370e8d0 (patch) | |
tree | 4bd28fe2a1bca0a14710f01f98852f43ef2e330c /net/9p | |
parent | f3e0008f01b275bd08bd416cfcaa7021dd6bc277 (diff) | |
download | linux-5d02b3cdfafeb23ab7cf43ef1d2118007370e8d0.tar.xz |
batman-adv: Make bat_priv->curr_gw an rcu protected pointer
The rcu protected macros rcu_dereference() and rcu_assign_pointer()
for the bat_priv->curr_gw need to be used, as well as spin/rcu locking.
Otherwise we might end up using a curr_gw pointer pointing to already
freed memory.
Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Linus Lüssing <linus.luessing@ascom.ch>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/9p')
0 files changed, 0 insertions, 0 deletions