Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {