[PATCH 06/10] batman-adv: Make MCAST capability changes atomic

2015-08-14 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic set_bit()/clear_bit()/test_bit() functions. Fixes:

[PATCH 06/10] batman-adv: Make MCAST capability changes atomic

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic set_bit()/clear_bit()/test_bit() functions. Fixes: