Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
@@ -258,13 +258,15 @@ static int tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd,
|
||||
arg = nlmsg_new(0, GFP_KERNEL);
|
||||
if (!arg) {
|
||||
kfree_skb(msg->rep);
|
||||
msg->rep = NULL;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
err = __tipc_nl_compat_dumpit(cmd, msg, arg);
|
||||
if (err)
|
||||
if (err) {
|
||||
kfree_skb(msg->rep);
|
||||
|
||||
msg->rep = NULL;
|
||||
}
|
||||
kfree_skb(arg);
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user