mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
VSOCK: Don't reject PF_VSOCK protocol
Allow our own family as the protocol value for socket creation. Reported-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Andy King <acking@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5b8ca5344f
commit
6cf1c5fc26
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue