summaryrefslogtreecommitdiff
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2014-01-29 14:25:12 +0400
committerAntonio Quartulli <antonio@meshcoding.com>2014-02-17 20:17:01 +0400
commit08bf0ed29c7ded45c477d08618220dd200c3524a (patch)
tree102dc9b539fb06435727c592c720d17fc62ddbb9 /net/ipv4/udp.c
parentf1791425cf0bcda43ab9a9a37df1ad3ccb1f6654 (diff)
downloadlinux-08bf0ed29c7ded45c477d08618220dd200c3524a.tar.xz
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 <antonio@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions