diff options
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 276940470..4cd725731 100644 --- a/net/socket.c +++ b/net/socket.c @@ -365,7 +365,7 @@ static int sock_map_fd(struct socket *sock) file->f_vfsmnt = mntget(sock_mnt); sock->file = file; - file->f_op = &socket_file_ops; + file->f_op = sock->inode->i_fop = &socket_file_ops; file->f_mode = 3; file->f_flags = O_RDWR; file->f_pos = 0; |