summaryrefslogtreecommitdiff
path: root/net/batman-adv/gateway_common.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-05-09 00:31:57 +0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-18 20:01:06 +0400
commit75c5a2e788ab02f67931442e8dcbc854ae7252d1 (patch)
treef1ae84324fe9990fa8b04edd17384e644d8cb73b /net/batman-adv/gateway_common.c
parentef3a409391f55ad0bddbf017d4d4987b783a3059 (diff)
downloadlinux-75c5a2e788ab02f67931442e8dcbc854ae7252d1.tar.xz
batman-adv: fix locking in hash_add()
To ensure an entry isn't added twice all comparisons have to be protected by the hash line write spinlock. This doesn't really hurt as the case that it is tried to add an element already present to the hash shouldn't occur very often, so in most cases the lock would have have to be taken anyways. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Acked-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/gateway_common.c')
0 files changed, 0 insertions, 0 deletions