summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mscc
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maximmi@mellanox.com>2019-05-21 06:40:04 +0000
committerDavid S. Miller <davem@davemloft.net>2019-05-22 12:07:25 -0700
commit7dc2bccab0ee37ac28096b8fcdc390a679a15841 (patch)
treea747c5ea65b10d25d71cabbe1d6eeb351bac6a79 /drivers/net/ethernet/mscc
parent54dee406374ce8adb352c48e175176247cb8db7c (diff)
downloadlinux-7dc2bccab0ee37ac28096b8fcdc390a679a15841.tar.bz2
Validate required parameters in inet6_validate_link_af
inet6_set_link_af requires that at least one of IFLA_INET6_TOKEN or IFLA_INET6_ADDR_GET_MODE is passed. If none of them is passed, it returns -EINVAL, which may cause do_setlink() to fail in the middle of processing other commands and give the following warning message: A link change request failed with some changes committed already. Interface eth0 may have been left with an inconsistent configuration, please check. Check the presence of at least one of them in inet6_validate_link_af to detect invalid parameters at an early stage, before do_setlink does anything. Also validate the address generation mode at an early stage. Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc')
0 files changed, 0 insertions, 0 deletions