diff options
Diffstat (limited to 'net/tipc/netlink_compat.c')
-rw-r--r-- | net/tipc/netlink_compat.c | 5 |
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, | |||
185 | return -ENOMEM; | 185 | return -ENOMEM; |
186 | 186 | ||
187 | buf->sk = msg->dst_sk; | 187 | buf->sk = msg->dst_sk; |
188 | if (__tipc_dump_start(&cb, msg->net)) { | ||
189 | kfree_skb(buf); | ||
190 | return -ENOMEM; | ||
191 | } | ||
188 | 192 | ||
189 | do { | 193 | do { |
190 | int rem; | 194 | int rem; |
@@ -216,6 +220,7 @@ static int __tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd, | |||
216 | err = 0; | 220 | err = 0; |
217 | 221 | ||
218 | err_out: | 222 | err_out: |
223 | tipc_dump_done(&cb); | ||
219 | kfree_skb(buf); | 224 | kfree_skb(buf); |
220 | 225 | ||
221 | if (err == -EMSGSIZE) { | 226 | if (err == -EMSGSIZE) { |