diff options
author | David S. Miller <davem@davemloft.net> | 2019-03-02 15:54:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-02 15:54:35 -0500 |
commit | 9eb359140cd307f8a14f61c19b155ffca5291057 (patch) | |
tree | 22d5143608ef1744ca4b7025414777defe8bcca5 /net/socket.c | |
parent | cf29576fee6016fa7004262cb98f57a2269178f1 (diff) | |
parent | 07f12b26e21ab359261bf75cfcb424fdc7daeb6d (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c index 643a1648fcc2..3c176a12fe48 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -577,6 +577,7 @@ static void __sock_release(struct socket *sock, struct inode *inode) | |||
577 | if (inode) | 577 | if (inode) |
578 | inode_lock(inode); | 578 | inode_lock(inode); |
579 | sock->ops->release(sock); | 579 | sock->ops->release(sock); |
580 | sock->sk = NULL; | ||
580 | if (inode) | 581 | if (inode) |
581 | inode_unlock(inode); | 582 | inode_unlock(inode); |
582 | sock->ops = NULL; | 583 | sock->ops = NULL; |