git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75db986
)
team: fix error path in team_nl_fill_port_list_get()
author
Jiri Pirko
<jpirko@redhat.com>
Tue, 19 Jun 2012 05:54:13 +0000
(
05:54
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Jun 2012 22:00:23 +0000
(15:00 -0700)
genlmsg_cancel() needs to be called in case nest fails
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
patch
|
blob
|
history
diff --git
a/drivers/net/team/team.c
b/drivers/net/team/team.c
index
82ded18
..
e977f44
100644
(file)
--- a/
drivers/net/team/team.c
+++ b/
drivers/net/team/team.c
@@
-1849,7
+1849,7
@@
static int team_nl_fill_port_list_get(struct sk_buff *skb,
goto nla_put_failure;
port_list = nla_nest_start(skb, TEAM_ATTR_LIST_PORT);
if (!port_list)
-
return -EMSGSIZE
;
+
goto nla_put_failure
;
list_for_each_entry(port, &team->port_list, list) {
struct nlattr *port_item;