]> git.baikalelectronics.ru Git - kernel.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)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 23 Jun 2010 13:19:06 +0000 (22:49 +0930)
commitb2ad9007f21cd63583ea673f9e5b6a11b149ecb6
treec97b5c5961df1f051e42a59dcb9ee1884d8f3086
parenta05552eb058caba6e4fae1ea274cb90883c6f8eb
virtio: return ENOMEM on out of memory

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>
Cc: stable@kernel.org # .34.x
drivers/virtio/virtio_ring.c