qemu/nbd
Paolo Bonzini f1c17521e7 nbd-server: do not exit on failed memory allocation
The amount of memory allocated in nbd_co_receive_request is driven by the
NBD client (possibly a virtual machine).  Parallel I/O can cause the
server to allocate a large amount of memory; check for failures and
return ENOMEM in that case.

Cc: qemu-block@nongnu.org
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-01-15 18:58:02 +01:00
..
client.c nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
common.c nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
server.c nbd-server: do not exit on failed memory allocation 2016-01-15 18:58:02 +01:00