batman-adv: Always initialize fragment header priority
authorSven Eckelmann <sven.eckelmann@open-mesh.com>
Mon, 16 Mar 2020 22:30:50 +0000 (23:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 08:07:52 +0000 (09:07 +0100)
commitea40bc532c52ae43a7eaed389f04551a5d318ad4
treeddecd6d566a3002ad751c38123f35636e94da020
parent0478b59311abcae3393b2e8fc22d191b94438a75
batman-adv: Always initialize fragment header priority

commit fe77d8257c4d838c5976557ddb87bd789f312412 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/batman-adv/fragmentation.c