summaryrefslogtreecommitdiff
path: root/net/batman-adv/hard-interface.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-02-24 14:03:37 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2018-02-25 22:11:59 +0300
commitfce672db548ff19e76a08a32a829544617229bc2 (patch)
tree90530a29bc6c58bc93944250a9030163d0501887 /net/batman-adv/hard-interface.c
parentb0264ecdfeab5f889b02ec54af7ca8cc1c245e2f (diff)
downloadlinux-fce672db548ff19e76a08a32a829544617229bc2.tar.xz
batman-adv: Fix netlink dumping of BLA backbones
The function batadv_bla_backbone_dump_bucket must be able to handle non-complete dumps of a single bucket. It tries to do that by saving the latest dumped index in *idx_skip to inform the caller about the current state. But the caller only assumes that buckets were not completely dumped when the return code is non-zero. This function must therefore also return a non-zero index when the dumping of an entry failed. Otherwise the caller will just skip all remaining buckets. And the function must also reset *idx_skip back to zero when it finished a bucket. Otherwise it will skip the same number of entries in the next bucket as the previous one had. Fixes: ea4152e11716 ("batman-adv: add backbone table netlink support") Reported-by: Linus Lüssing <linus.luessing@c0d3.blue> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/hard-interface.c')
0 files changed, 0 insertions, 0 deletions