diff options
author | 2016-12-05 15:28:21 +0800 | |
---|---|---|
committer | 2016-12-05 19:43:42 -0500 | |
commit | ed5d7788a934a4b6d6d025e948ed4da496b4f12e (patch) | |
tree | 9f10caf66c776a0ea3d55504e647897408105996 /samples/watchdog | |
parent | uapi: export nf_log.h (diff) | |
download | linux-ed5d7788a934a4b6d6d025e948ed4da496b4f12e.tar.gz linux-ed5d7788a934a4b6d6d025e948ed4da496b4f12e.tar.bz2 linux-ed5d7788a934a4b6d6d025e948ed4da496b4f12e.zip |
netlink: Do not schedule work from sk_destruct
It is wrong to schedule a work from sk_destruct using the socket
as the memory reserve because the socket will be freed immediately
after the return from sk_destruct.
Instead we should do the deferral prior to sk_free.
This patch does just that.
Fixes: 707693c8a498 ("netlink: Call cb->done from a worker thread")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/watchdog')
0 files changed, 0 insertions, 0 deletions