]> asedeno.scripts.mit.edu Git - linux.git/commit
batman-adv: Always initialize fragment header priority
authorSven Eckelmann <sven.eckelmann@open-mesh.com>
Wed, 29 Nov 2017 09:25:02 +0000 (10:25 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 1 Dec 2017 11:37:58 +0000 (12:37 +0100)
commitfe77d8257c4d838c5976557ddb87bd789f312412
treeedb927db4a73a72df91bdde4b315222dffdf8f73
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
batman-adv: Always initialize fragment header priority

The batman-adv unuicast fragment header contains 3 bits for the priority of
the packet. These bits will be initialized when the skb->priority contains
a value between 256 and 263. But otherwise, the uninitialized bits from the
stack will be used.

Fixes: c0f25c802b33 ("batman-adv: Include frame priority in fragment header")
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/fragmentation.c