git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Return correct error code when dumping flow actions.
[sliver-openvswitch.git]
/
datapath
/
datapath.c
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index
0f4796e
..
b731c20
100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-1119,10
+1119,8
@@
static int ovs_flow_cmd_fill_info(struct sw_flow *flow, struct datapath *dp,
nla_nest_cancel(skb, start);
}
nla_nest_cancel(skb, start);
}
- } else if (skb_orig_len) {
- err = -ENOMEM;
- goto error;
- }
+ } else if (skb_orig_len)
+ goto nla_put_failure;
return genlmsg_end(skb, ovs_header);
return genlmsg_end(skb, ovs_header);