mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
7798b59409
If req->hr_proto->hp_accept() fail, we call fput() twice:
Once in the error path, but also a second time because sock->file
is at that point already associated with the file descriptor. Once
the task exits, as it would probably do after receiving an error
reading from netlink, the fd is closed, calling fput() a second time.
To fix, we move installing the file after the error path for the
hp_accept() call. In the case of errors we simply put the unused fd.
In case of success we can use fd_install() to link the sock->file
to the reserved fd.
Fixes:
|
||
---|---|---|
.. | ||
.kunitconfig | ||
alert.c | ||
genl.c | ||
genl.h | ||
handshake-test.c | ||
handshake.h | ||
Makefile | ||
netlink.c | ||
request.c | ||
tlshd.c | ||
trace.c |