[B.A.T.M.A.N.] [PATCHv2 maint 1/4] batman-adv: Fix broken DAT capability check

Marek Lindner mareklindner at neomailbox.ch
Tue Jul 7 10:41:12 CEST 2015


On Friday, July 03, 2015 18:29:56 Linus Lüssing wrote:
> The introduction of set_bit() and clear_bit() calls in batman-adv
> wrongly passed bitmasks and not the bit numbers to these functions.
> This leads to broken capability checks.
> 
> Fixing this by making the capability enum a non-bitmasked one and by
> that passing non-masked values to set_bit()/clear_bit().
> 
> Fixes: bfd0fbaef270 ("batman-adv: Make DAT capability changes atomic")
> Reported-by: Def <def at laposte.net>
> Signed-off-by: Linus Lüssing <linus.luessing at c0d3.blue>
> ---
>  distributed-arp-table.c |    2 +-
>  types.h                 |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied in revision de46667.

Thanks,
Marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/attachments/20150707/101da11e/attachment.sig>


More information about the B.A.T.M.A.N mailing list