net: introduce nla_policy for IFLA_NEW_IFINDEX
authorAndrei Vagin <avagin@gmail.com>
Wed, 7 Apr 2021 06:40:03 +0000 (23:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:42:12 +0000 (14:42 -0700)
commit7e4a51319d3a71ac8002c96f817bcbeb36789b07
treeb0d76fad49603063e1cb6f1d0002ce9b78a7e1ea
parentf86c70ed0476eaaa0215a97005af336f687baa77
net: introduce nla_policy for IFLA_NEW_IFINDEX

In this case, we don't need to check that new_ifindex is positive in
validate_linkmsg.

Fixes: eeb85a14ee34 ("net: Allow to specify ifindex when device is moved to another namespace")
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c