Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lxc_user_nic: fix get_mtu() error handling
get_mtu() returns int, but "mtu" variable has unsigned int type. It leads to logical error in error handling, which can end up with strange -EINVAL error in lxc_veth_create(), cause (mtu > 0) condition is met, but negative "mtu" value is too large when set as mtu for network device. Issue #4232 Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
- Loading branch information