Commit 6cf1c5fc authored by Andy King's avatar Andy King Committed by David S. Miller

VSOCK: Don't reject PF_VSOCK protocol

Allow our own family as the protocol value for socket creation.
Reported-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarAndy King <acking@vmware.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5b8ca534
......@@ -1860,7 +1860,7 @@ static int vsock_create(struct net *net, struct socket *sock,
if (!sock)
return -EINVAL;
if (protocol)
if (protocol && protocol != PF_VSOCK)
return -EPROTONOSUPPORT;
switch (sock->type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment