projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2809486
)
[RTNETLINK]: Don't return error on no-metrics.
author
David S. Miller
<davem@sunset.davemloft.net>
Wed, 23 Aug 2006 05:20:14 +0000
(22:20 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:55:40 +0000
(14:55 -0700)
Instead just cancel the nested attribute and return 0.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c
patch
|
blob
|
history
diff --git
a/net/core/rtnetlink.c
b/net/core/rtnetlink.c
index
eeff0b2
..
8f22549
100644
(file)
--- a/
net/core/rtnetlink.c
+++ b/
net/core/rtnetlink.c
@@
-202,8
+202,10
@@
int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics)
}
}
- if (!valid)
- goto nla_put_failure;
+ if (!valid) {
+ nla_nest_cancel(skb, mx);
+ return 0;
+ }
return nla_nest_end(skb, mx);