]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: return ENOMEM on out of memory
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 10 Jun 2010 15:16:11 +0000 (18:16 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:17 +0000 (10:29 -0700)
commite61dcd092ff55415060b37bb4a6cf855385768b9
treeb67fb85cdfb4b0b51546f005030f0ec51346723b
parentd674601ce1cd0123e065884f4d84e29f10e0b108
virtio: return ENOMEM on out of memory

commit 686d363786a53ed28ee875b84ef24e6d5126ef6f upstream.

add_buf returns ring size on out of memory,
this is not what devices expect.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/virtio/virtio_ring.c