]> git.proxmox.com Git - mirror_ovs.git/commit
bridge: Fix qos_unixctl_show bug.
authorIan Stokes <ian.stokes@intel.com>
Tue, 8 Mar 2016 23:10:31 +0000 (23:10 +0000)
committerBen Pfaff <blp@ovn.org>
Tue, 22 Mar 2016 17:57:04 +0000 (10:57 -0700)
commitc3b76f3ed19226557ffbf4fdbcea4c6e888ac1d7
treeb911504864d17bb74dd46f64f7ec417f5c51cde2
parentb0ea21e04d539c3e675fcac5d00d6a7a2e1bd544
bridge: Fix qos_unixctl_show bug.

netdev_get_qos returns a value to indicate if an error has occurred while
attempting to query the QoS configuration of an interface. If an error does
occur the pointer argument passed to it will be set to null before returning.
Currently the vswitch will segfault if this occurs as qos_unixctl_show will
attempt to access the pointer directly after it calls netdev_get_qos.

Avoid this by adding a check for the return value and flagging an appropriate
error message to appctl.

Signed-off-by: Ian Stokes <ian.stokes@intel.com>
[blp@ovn.org changed details of error report]
Signed-off-by: Ben Pfaff <blp@ovn.org>
AUTHORS
vswitchd/bridge.c