projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dee0416
)
rtnetlink: return EINVAL when request cannot succeed
author
Florent Fourcot
<florent.fourcot@wifirst.fr>
Fri, 15 Apr 2022 16:53:30 +0000
(18:53 +0200)
committer
Paolo Abeni
<pabeni@redhat.com>
Tue, 19 Apr 2022 11:38:55 +0000
(13:38 +0200)
A request without interface name/interface index/interface group cannot
work. We should return EINVAL
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: Brian Baboch <brian.baboch@wifirst.fr>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnetlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/rtnetlink.c
b/net/core/rtnetlink.c
index 73f2cbc440c9bbf00f725be52448a6bdecd147a5..b943336908a7d1a4d60dc45b840a665cab3c1b80 100644
(file)
--- a/
net/core/rtnetlink.c
+++ b/
net/core/rtnetlink.c
@@
-3457,7
+3457,7
@@
replay:
return rtnl_group_changelink(skb, net,
nla_get_u32(tb[IFLA_GROUP]),
ifm, extack, tb);
- return -E
NODEV
;
+ return -E
INVAL
;
}
if (tb[IFLA_MAP] || tb[IFLA_PROTINFO])