diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-14 17:22:17 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-29 15:41:43 -0400 |
commit | 0e2bcaae836e535236244bfc900626ee541eb7bb (patch) | |
tree | 69b40e8c00807f345943d2f4f949efa00a223629 /net/socket.c | |
parent | e53cfda5d2c90a6dd763eb72034c775add729e40 (diff) |
sock_close() couldn't have been called with NULL inode since at least 2.1.early
... if not since 0.99 or so.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/socket.c b/net/socket.c index 88f759adf3af..9663df63e3d1 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -1173,15 +1173,6 @@ static int sock_mmap(struct file *file, struct vm_area_struct *vma) | |||
1173 | 1173 | ||
1174 | static int sock_close(struct inode *inode, struct file *filp) | 1174 | static int sock_close(struct inode *inode, struct file *filp) |
1175 | { | 1175 | { |
1176 | /* | ||
1177 | * It was possible the inode is NULL we were | ||
1178 | * closing an unfinished socket. | ||
1179 | */ | ||
1180 | |||
1181 | if (!inode) { | ||
1182 | printk(KERN_DEBUG "sock_close: NULL inode\n"); | ||
1183 | return 0; | ||
1184 | } | ||
1185 | sock_release(SOCKET_I(inode)); | 1176 | sock_release(SOCKET_I(inode)); |
1186 | return 0; | 1177 | return 0; |
1187 | } | 1178 | } |