Revert "netlink: Fix dump skb leak/double free"

This reverts commit ed0ba3a012.
This commit is contained in:
syphyr 2018-09-25 01:15:18 +02:00
parent a408d4c0c4
commit 8267aba5fc
1 changed files with 1 additions and 3 deletions

View File

@ -2479,7 +2479,6 @@ static int netlink_dump(struct sock *sk)
struct netlink_callback *cb;
struct sk_buff *skb = NULL;
struct nlmsghdr *nlh;
struct module *module;
int len, err = -ENOBUFS;
int alloc_size;
@ -2529,10 +2528,9 @@ static int netlink_dump(struct sock *sk)
if (cb->done)
cb->done(cb);
nlk->cb = NULL;
module = cb->module;
mutex_unlock(nlk->cb_mutex);
module_put(module);
module_put(cb->module);
netlink_consume_callback(cb);
return 0;