OSDN Git Service

batman-adv: Fix netlink dumping of all mcast_flags buckets
authorSven Eckelmann <sven@narfation.org>
Sun, 7 Jul 2019 20:15:13 +0000 (22:15 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 22 Jul 2019 19:34:58 +0000 (21:34 +0200)
commitfa3a03da549a889fc9dbc0d3c5908eb7882cac8f
tree409cfab147e65bf26f097eeea6c0fb4854c4284c
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
batman-adv: Fix netlink dumping of all mcast_flags buckets

The bucket variable is only updated outside the loop over the mcast_flags
buckets. It will only be updated during a dumping run when the dumping has
to be interrupted and a new message has to be started.

This could result in repeated or missing entries when the multicast flags
are dumped to userspace.

Fixes: d2d489b7d851 ("batman-adv: Add inconsistent multicast netlink dump detection")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/multicast.c