aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatthias Schiffer <[email protected]>2012-05-08 22:31:57 +0200
committerAntonio Quartulli <[email protected]>2012-06-18 18:01:06 +0200
commit75c5a2e788ab02f67931442e8dcbc854ae7252d1 (patch)
treef1ae84324fe9990fa8b04edd17384e644d8cb73b /scripts
parentef3a409391f55ad0bddbf017d4d4987b783a3059 (diff)
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 <[email protected]> Acked-by: Sven Eckelmann <[email protected]> Signed-off-by: Sven Eckelmann <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions