inet: do not use RTNL in inet_netconf_get_devconf()
authorEric Dumazet <edumazet@google.com>
Tue, 27 Feb 2024 09:24:10 +0000 (09:24 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 03:36:40 +0000 (19:36 -0800)
commitbbcf91053bb622c4c26a9bfc998d3b0c59227f10
tree93be235507dc2296e9f60ff594886f3ca6de5820
parent0598f8f3bb77893a13105d47bb7dfe42f1dc1f4e
inet: do not use RTNL in inet_netconf_get_devconf()

"ip -4 netconf show dev XXXX" no longer acquires RTNL.

Return -ENODEV instead of -EINVAL if no netdev or idev can be found.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240227092411.2315725-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/devinet.c