Re: [PATCH] Correct accept(2) recovery after sock_attach_fd()

2007-03-26 Thread David Miller
From: Alexey Dobriyan <[EMAIL PROTECTED]> Date: Mon, 26 Mar 2007 19:34:31 +0400 > * 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-

[PATCH] Correct accept(2) recovery after sock_attach_fd()

2007-03-26 Thread Alexey Dobriyan
* 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 <[EMAIL PROTECTED]> --- net/socket.c |7 ++- 1 file changed,