[ovs-git] [openvswitch/ovs] a50b2a: netdev-bsd: Fix netdev_bsd_get_mtu() return value.
GitHub
noreply at github.com
Fri Apr 17 16:34:41 UTC 2015
Branch: refs/heads/branch-2.0
Home: https://github.com/openvswitch/ovs
Commit: a50b2afa105dff7283cdbc917fec89c977f8ac79
https://github.com/openvswitch/ovs/commit/a50b2afa105dff7283cdbc917fec89c977f8ac79
Author: Ben Pfaff <blp at nicira.com>
Date: 2015-04-17 (Fri, 17 Apr 2015)
Changed paths:
M lib/netdev-bsd.c
Log Message:
-----------
netdev-bsd: Fix netdev_bsd_get_mtu() return value.
When netdev_bsd_get_mtu() failed, it didn't report the error to the caller,
so the caller couldn't work around not knowing the MTU, and ended up using
an uninitialized 'mtu' value.
Found by LLVM scan-build.
Reported-by: Kevin Lo <kevlo at FreeBSD.org>
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Kevin Lo <kevlo at FreeBSD.org>
Acked-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
More information about the git
mailing list