]> git.baikalelectronics.ru Git - kernel.git/commit
VSOCK: Return VMCI_ERROR_NO_MEM when fails to allocate skb
authorAsias He <asias@redhat.com>
Thu, 20 Jun 2013 09:20:31 +0000 (17:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2013 06:51:48 +0000 (23:51 -0700)
commita4c35db82380c0ba7321de28f1dd9bbe28a53310
treeb42a4643fc4380a665dcba93c71f9786df23584e
parent929ec7298c06fef93223b2f9b9c4761641cd1735
VSOCK: Return VMCI_ERROR_NO_MEM when fails to allocate skb

vmci_transport_recv_dgram_cb always return VMCI_SUCESS even if we fail
to allocate skb, return VMCI_ERROR_NO_MEM instead.

Signed-off-by: Asias He <asias@redhat.com>
Acked-by: Andy King <acking@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/vmci_transport.c