]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NET: Fix sock_attach_fd() failure in sys_accept()
authorAlexey Dobriyan <adobriyan@sw.ru>
Thu, 29 Mar 2007 19:22:40 +0000 (12:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Apr 2007 10:43:14 +0000 (03:43 -0700)
commit4870b7bf2ed1ffb316bd57ed8172e384ab186d6a
tree4deb448944af42bce60212a0e4a5d5ee03a1a1db
parentcb8b4fce39de35071349352c004d930bf9266624
NET: Fix sock_attach_fd() failure in sys_accept()

[NET]: Correct accept(2) recovery after sock_attach_fd()

* d_alloc() in sock_attach_fd() fails leaving ->f_dentry of new file NULL
* bail out to out_fd label, doing fput()/__fput() on new file
* but __fput() assumes valid ->f_dentry and dereferences it

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/socket.c