projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
734907e
)
openvswitch: Fix ovs_vport_cmd_new return value on success
author
Rich Lane
<rlane@bigswitch.com>
Fri, 8 Feb 2013 21:18:01 +0000
(13:18 -0800)
committer
Jesse Gross
<jesse@nicira.com>
Sat, 23 Feb 2013 01:01:57 +0000
(17:01 -0800)
If the pointer does not represent an error then the PTR_ERR
macro may still return a nonzero value.
Signed-off-by: Rich Lane <rlane@bigswitch.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c
patch
|
blob
|
history
diff --git
a/net/openvswitch/datapath.c
b/net/openvswitch/datapath.c
index 5e275b903f3c9a6c75df77e256e97e9eef91c003..a2cd3e6d03a20c6bf30b96d8b06412821c43a489 100644
(file)
--- a/
net/openvswitch/datapath.c
+++ b/
net/openvswitch/datapath.c
@@
-1691,6
+1691,7
@@
static int ovs_vport_cmd_new(struct sk_buff *skb, struct genl_info *info)
if (IS_ERR(vport))
goto exit_unlock;
+ err = 0;
reply = ovs_vport_cmd_build_info(vport, info->snd_portid, info->snd_seq,
OVS_VPORT_CMD_NEW);
if (IS_ERR(reply)) {