[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)
* 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>

No differences found