summaryrefslogtreecommitdiffstats
path: root/net/tipc/netlink_compat.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2018-10-23 13:19:54 +0200
committerJiri Kosina <jkosina@suse.cz>2018-10-23 13:19:54 +0200
commita600ffe6ec609b0600ec590236f97f8d430e0984 (patch)
tree57432877c74c80ab470d7b655a2e18a6b5168ee5 /net/tipc/netlink_compat.c
parentd19031d32cd77b2878a006040e0f8e4183ca59ef (diff)
parent23e542e5ba5e4298a1475f94750317ec1662ba21 (diff)
downloadtalos-obmc-linux-a600ffe6ec609b0600ec590236f97f8d430e0984.tar.gz
talos-obmc-linux-a600ffe6ec609b0600ec590236f97f8d430e0984.zip
Merge branch 'for-4.20/google' into for-linus
Whisker device specific fixes to hid-google driver
Diffstat (limited to 'net/tipc/netlink_compat.c')
-rw-r--r--net/tipc/netlink_compat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/tipc/netlink_compat.c b/net/tipc/netlink_compat.c
index a2f76743c73a..6376467e78f8 100644
--- a/net/tipc/netlink_compat.c
+++ b/net/tipc/netlink_compat.c
@@ -185,6 +185,10 @@ static int __tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd,
return -ENOMEM;
buf->sk = msg->dst_sk;
+ if (__tipc_dump_start(&cb, msg->net)) {
+ kfree_skb(buf);
+ return -ENOMEM;
+ }
do {
int rem;
@@ -216,6 +220,7 @@ static int __tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd,
err = 0;
err_out:
+ tipc_dump_done(&cb);
kfree_skb(buf);
if (err == -EMSGSIZE) {
OpenPOWER on IntegriCloud