[ovs-git] [openvswitch/ovs] bc8569: netdev-linux: Remove unreachable code in netdev_li...
noreply at github.com
Thu Nov 26 05:58:44 UTC 2015
Author: Ilya Maximets <i.maximets at samsung.com>
Date: 2015-11-25 (Wed, 25 Nov 2015)
netdev-linux: Remove unreachable code in netdev_linux_rx_recv_tap().
While splitting netdev_linux_rx_recv() into netdev_linux_rx_recv_sock()
and netdev_linux_rx_recv_tap() in commit
b73c85181df9 ("netdev-linux: Read packet auxdata to obtain vlan_tid")
error handling part was copied 'as is' to both functions.
But in case of netdev_linux_rx_recv_tap(), according to POSIX, the
number of bytes read shall never be greater than 'size'.
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git