[Devel] [PATCH:rh7] [regression] do not allow to reopen socket

Dmitry Monakhov dmonakhov at openvz.org
Tue Oct 27 07:18:21 PDT 2015


From: dmonakhov at gmail.com

https://jira.sw.ru/browse/PSBM-40500
Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>

Original patch

>From e3bb504efd919f7bacd24cb14038953899b909e1 Mon Sep 17 00:00:00 2001
From: Al Viro <viro at zeniv.linux.org.uk>
Date: Fri, 19 Dec 2014 07:11:56 -0500
Subject: [PATCH] [regression] chunk lost from bd9b51

Reported-by: Pavel Emelyanov <xemul at parallels.com>
Acked-by: Pavel Emelyanov <xemul at parallels.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
---
 net/socket.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/net/socket.c b/net/socket.c
index 70bbde6..a2c33a4 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -372,7 +372,6 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname)
 	path.mnt = mntget(sock_mnt);
 
 	d_instantiate(path.dentry, SOCK_INODE(sock));
-	SOCK_INODE(sock)->i_fop = &socket_file_ops;
 
 	file = alloc_file(&path, FMODE_READ | FMODE_WRITE,
 		  &socket_file_ops);
-- 
1.7.1




More information about the Devel mailing list