aboutsummaryrefslogtreecommitdiffstats
path: root/net/vmw_vsock
diff options
context:
space:
mode:
Diffstat (limited to 'net/vmw_vsock')
-rw-r--r--net/vmw_vsock/af_vsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index c1b9e55e338e..ca511c4f388a 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -1860,7 +1860,7 @@ static int vsock_create(struct net *net, struct socket *sock,
1860 if (!sock) 1860 if (!sock)
1861 return -EINVAL; 1861 return -EINVAL;
1862 1862
1863 if (protocol) 1863 if (protocol && protocol != PF_VSOCK)
1864 return -EPROTONOSUPPORT; 1864 return -EPROTONOSUPPORT;
1865 1865
1866 switch (sock->type) { 1866 switch (sock->type) {