[ovs-git] [openvswitch/ovs] bc8569: netdev-linux: Remove unreachable code in netdev_li...

GitHub noreply at github.com
Thu Nov 26 05:58:44 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: bc85690660abea9492f3cd3a51e696ccfad315e0
      https://github.com/openvswitch/ovs/commit/bc85690660abea9492f3cd3a51e696ccfad315e0
  Author: Ilya Maximets <i.maximets at samsung.com>
  Date:   2015-11-25 (Wed, 25 Nov 2015)

  Changed paths:
    M AUTHORS
    M lib/netdev-linux.c

  Log Message:
  -----------
  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 mailing list