From: Antonio Quartulli Date: Wed, 29 Jan 2014 10:25:12 +0000 (+0100) Subject: batman-adv: avoid potential race condition when adding a new neighbour X-Git-Tag: v3.14-rc4~30^2~7^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08bf0ed29c7ded45c477d08618220dd200c3524a;p=pandora-kernel.git batman-adv: avoid potential race condition when adding a new neighbour When adding a new neighbour it is important to atomically perform the following: - check if the neighbour already exists - append the neighbour to the proper list If the two operations are not performed in an atomic context it is possible that two concurrent insertions add the same neighbour twice. Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- Reading git-diff-tree failed