aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/genetlink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 2f72598dd8fe..2fd6dbea327a 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -598,7 +598,7 @@ static int genl_family_rcv_msg(struct genl_family *family,
598 err = nlmsg_parse(nlh, hdrlen, attrbuf, family->maxattr, 598 err = nlmsg_parse(nlh, hdrlen, attrbuf, family->maxattr,
599 ops->policy); 599 ops->policy);
600 if (err < 0) 600 if (err < 0)
601 return err; 601 goto out;
602 } 602 }
603 603
604 info.snd_seq = nlh->nlmsg_seq; 604 info.snd_seq = nlh->nlmsg_seq;
@@ -613,7 +613,7 @@ static int genl_family_rcv_msg(struct genl_family *family,
613 if (family->pre_doit) { 613 if (family->pre_doit) {
614 err = family->pre_doit(ops, skb, &info); 614 err = family->pre_doit(ops, skb, &info);
615 if (err) 615 if (err)
616 return err; 616 goto out;
617 } 617 }
618 618
619 err = ops->doit(skb, &info); 619 err = ops->doit(skb, &info);
@@ -621,6 +621,7 @@ static int genl_family_rcv_msg(struct genl_family *family,
621 if (family->post_doit) 621 if (family->post_doit)
622 family->post_doit(ops, skb, &info); 622 family->post_doit(ops, skb, &info);
623 623
624out:
624 if (family->parallel_ops) 625 if (family->parallel_ops)
625 kfree(attrbuf); 626 kfree(attrbuf);
626 627