linux/net/batman-adv
Matthias Schiffer 75c5a2e788 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>
2012-06-18 18:01:06 +02:00
..
bat_algo.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
bat_debugfs.c batman-adv: Return error codes instead of -1 on failures 2012-06-18 18:01:03 +02:00
bat_debugfs.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
bat_iv_ogm.c batman-adv: turn tt commit code into routing protocol agnostic API 2012-06-18 18:01:05 +02:00
bat_sysfs.c batman-adv: use DBG_ALL in log_level sysfs definition 2012-06-18 18:01:06 +02:00
bat_sysfs.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
bitarray.c batman-adv: Replace bitarray operations with bitmap 2012-04-11 14:28:58 +02:00
bitarray.h batman-adv: Replace bitarray operations with bitmap 2012-04-11 14:28:58 +02:00
bridge_loop_avoidance.c batman-adv: Return error codes instead of -1 on failures 2012-06-18 18:01:03 +02:00
bridge_loop_avoidance.h batman-adv: update copyright years 2012-05-11 13:56:07 +02:00
gateway_client.c batman-adv: fix wrong dhcp option list browsing 2012-05-11 10:08:08 +02:00
gateway_client.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
gateway_common.c batman-adv: Ignore 80-chars per line limits for strings 2012-03-11 06:29:44 +08:00
gateway_common.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
hard-interface.c batman-adv: Return error codes instead of -1 on failures 2012-06-18 18:01:03 +02:00
hard-interface.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
hash.c batman-adv: Initialize lockdep class keys for hashes 2012-06-18 18:00:57 +02:00
hash.h batman-adv: fix locking in hash_add() 2012-06-18 18:01:06 +02:00
icmp_socket.c batman-adv: Return error codes instead of -1 on failures 2012-06-18 18:01:03 +02:00
icmp_socket.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
Kconfig batman-adv: add bridge loop avoidance compile option 2012-04-11 14:29:00 +02:00
main.c batman-adv: Return error codes instead of -1 on failures 2012-06-18 18:01:03 +02:00
main.h batman-adv: Add get_ethtool_stats() support 2012-06-18 18:00:58 +02:00
Makefile batman-adv: add bridge loop avoidance compile option 2012-04-11 14:29:00 +02:00
originator.c batman-adv: Return error codes instead of -1 on failures 2012-06-18 18:01:03 +02:00
originator.h batman-adv: split neigh_new function into generic and batman iv specific parts 2012-05-11 13:55:57 +02:00
packet.h batman-adv: don't bother flipping ->tt_crc 2012-06-18 18:01:04 +02:00
ring_buffer.c batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
ring_buffer.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
routing.c batman-adv: don't bother flipping ->tt_data 2012-06-18 18:01:03 +02:00
routing.h batman-adv: register batman ogm receive function during protocol init 2012-05-11 10:08:11 +02:00
send.c batman-adv: turn tt commit code into routing protocol agnostic API 2012-06-18 18:01:05 +02:00
send.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
soft-interface.c batman-adv: Add get_ethtool_stats() support 2012-06-18 18:00:58 +02:00
soft-interface.h batman-adv: remove old bridge loop avoidance code 2012-04-11 14:28:58 +02:00
translation-table.c batman-adv: turn tt commit code into routing protocol agnostic API 2012-06-18 18:01:05 +02:00
translation-table.h batman-adv: turn tt commit code into routing protocol agnostic API 2012-06-18 18:01:05 +02:00
types.h batman-adv: turn tt commit code into routing protocol agnostic API 2012-06-18 18:01:05 +02:00
unicast.c batman-adv: improve unicast packet (re)routing 2012-05-13 19:06:38 +02:00
unicast.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00
vis.c batman-adv: fix visualization output without neighbors on the primary interface 2012-06-18 18:01:04 +02:00
vis.h batman-adv: Update copyright years 2012-02-17 02:50:21 +08:00