diff options
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 d223725f99e5..5cac1c707755 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -480,6 +480,7 @@ static struct socket *sock_alloc(void) | |||
480 | sock = SOCKET_I(inode); | 480 | sock = SOCKET_I(inode); |
481 | 481 | ||
482 | kmemcheck_annotate_bitfield(sock, type); | 482 | kmemcheck_annotate_bitfield(sock, type); |
483 | inode->i_ino = get_next_ino(); | ||
483 | inode->i_mode = S_IFSOCK | S_IRWXUGO; | 484 | inode->i_mode = S_IFSOCK | S_IRWXUGO; |
484 | inode->i_uid = current_fsuid(); | 485 | inode->i_uid = current_fsuid(); |
485 | inode->i_gid = current_fsgid(); | 486 | inode->i_gid = current_fsgid(); |