]> git.proxmox.com Git - ovs.git/commit
netdev: Properly clear 'details' when iterating in NETDEV_QOS_FOR_EACH.
authorBen Pfaff <blp@ovn.org>
Tue, 2 Oct 2018 23:02:59 +0000 (16:02 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 3 Oct 2018 21:08:17 +0000 (14:08 -0700)
commit63cf14cd7ad27089131eb012f3ff08369583c308
tree14806f25b71cdeeca50aa6a3bd50b02c6e9ef16d
parent5e932acead6b9efe2ba514402edf5910d5b86a43
netdev: Properly clear 'details' when iterating in NETDEV_QOS_FOR_EACH.

The function comment for netdev_queue_dump_next() said that it cleared its
'detail' argument, but it didn't actually do that, which meant that details
could be incorrectly carried along from one queue to the next.

Reported-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
lib/netdev.c