From: Matthias Schiffer Date: Tue, 8 May 2012 20:31:57 +0000 (+0200) Subject: batman-adv: fix locking in hash_add() X-Git-Tag: v3.6-rc1~125^2~521^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75c5a2e788ab02f67931442e8dcbc854ae7252d1;p=pandora-kernel.git 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 Acked-by: Sven Eckelmann Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed