[NET]: Correct accept(2) recovery after sock_attach_fd()
authorAlexey Dobriyan <adobriyan@sw.ru>
Mon, 26 Mar 2007 21:09:52 +0000 (14:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2007 21:09:52 +0000 (14:09 -0700)
commit79f4f6428f6ceb9af57330092271bda028c23a96
treee73a452517b3e6f8cc5c583a3e0174b039ccc5a2
parent165de5b7f2719c1984956504128545839762d635
[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>
net/socket.c