Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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@FreeBSD.org> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Kevin Lo <kevlo@FreeBSD.org> Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
- Loading branch information