diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-01-19 20:01:42 (GMT) |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-03-05 11:50:00 (GMT) |
commit | 2ae2daf6c3f23364862a7d4f2ca79eab041b701b (patch) | |
tree | 8b4c15f4c7733d9d1d3aa58fd80b6f998b9eca2c /net/batman-adv/types.h | |
parent | 16b1aba849eeb45d51a5de731cf103143439ffe1 (diff) | |
download | linux-fsl-qoriq-2ae2daf6c3f23364862a7d4f2ca79eab041b701b.tar.xz |
batman-adv: protect ogm counter arrays with spinlock
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index ca4d42d..ff70afc 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -89,6 +89,7 @@ struct orig_node { struct kref refcount; struct bat_priv *bat_priv; unsigned long last_frag_packet; + spinlock_t ogm_cnt_lock; /* protects ogm counter */ struct { uint8_t candidates; struct neigh_node *selected; |