projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8ca53
)
VSOCK: Don't reject PF_VSOCK protocol
author
Andy King
<acking@vmware.com>
Mon, 18 Feb 2013 06:04:13 +0000
(06:04 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 18 Feb 2013 20:02:51 +0000
(15:02 -0500)
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>
net/vmw_vsock/af_vsock.c
patch
|
blob
|
blame
|
history
diff --git
a/net/vmw_vsock/af_vsock.c
b/net/vmw_vsock/af_vsock.c
index c1b9e55e338e495aa2157c101610b78c2aca9f91..ca511c4f388a56cf1fdaf110d31aff7d30b5d0fb 100644
(file)
--- 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,
if (!sock)
return -EINVAL;
- if (protocol)
+ if (protocol
&& protocol != PF_VSOCK
)
return -EPROTONOSUPPORT;
switch (sock->type) {