projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9272f04
)
fou: exit early when parsing config fails
author
WANG Cong
<xiyou.wangcong@gmail.com>
Fri, 10 Apr 2015 19:00:27 +0000
(12:00 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 13 Apr 2015 01:25:13 +0000
(21:25 -0400)
Not a big deal, just for corretness.
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fou.c
patch
|
blob
|
history
diff --git
a/net/ipv4/fou.c
b/net/ipv4/fou.c
index
c8db627
..
ad0ee82
100644
(file)
--- a/
net/ipv4/fou.c
+++ b/
net/ipv4/fou.c
@@
-605,8
+605,11
@@
static int fou_nl_cmd_add_port(struct sk_buff *skb, struct genl_info *info)
static int fou_nl_cmd_rm_port(struct sk_buff *skb, struct genl_info *info)
{
struct fou_cfg cfg;
+ int err;
- parse_nl_config(info, &cfg);
+ err = parse_nl_config(info, &cfg);
+ if (err)
+ return err;
return fou_destroy(&init_net, &cfg);
}