Revert "netlink: Fix dump skb leak/double free"
This reverts commit ed0ba3a012
.
This commit is contained in:
parent
a408d4c0c4
commit
8267aba5fc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue