[PATCH 04/10] batman-adv: Make NC capability changes atomic

2015-08-14 Thread Antonio Quartulli
From: Linus Lüssing 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: 3f4841ffb336 ("batman-adv: tvlv - a

Re: [PATCH 04/10] batman-adv: Make NC capability changes atomic

2015-08-11 Thread Sergei Shtylyov
On 08/11/2015 07:35 PM, Antonio Quartulli wrote: From: Linus Lüssing 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() fu

[PATCH 04/10] batman-adv: Make NC capability changes atomic

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing 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: 3f4841ffb336 ("batman-adv: tvlv - a