aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index e7d50116c..0644eaef1 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1440,7 +1440,7 @@ out_release:
SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol,
int __user *, usockvec)
{
- struct socket *sock1, *sock2;
+ struct socket *sock1 = NULL, *sock2 = NULL;
int fd1, fd2, err;
struct file *newfile1, *newfile2;
int flags;