[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 6/9] virtio-net: handle virtio_net_receive()
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2 6/9] virtio-net: handle virtio_net_receive() errors |
Date: |
Fri, 23 Sep 2016 14:11:47 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Wed, Sep 21, 2016 at 06:57:37PM +0200, Greg Kurz wrote:
> if (elem->in_num < 1) {
> - error_report("virtio-net receive queue contains no in buffers");
> - exit(1);
> + virtio_error(vdev,
> + "virtio-net receive queue contains no in buffers");
> + return -1;
Missing detach and free to avoid leaking elem.
signature.asc
Description: PGP signature
- Re: [Qemu-devel] [PATCH v2 3/9] virtio-9p: handle handle_9p_output() error, (continued)
- [Qemu-devel] [PATCH v2 4/9] virtio-blk: handle virtio_blk_handle_request() errors, Greg Kurz, 2016/09/21
- [Qemu-devel] [PATCH v2 5/9] virtio-net: handle virtio_net_handle_ctrl() error, Greg Kurz, 2016/09/21
- [Qemu-devel] [PATCH v2 7/9] virtio-net: handle virtio_net_flush_tx() errors, Greg Kurz, 2016/09/21
- [Qemu-devel] [PATCH v2 8/9] virtio-scsi: convert virtio_scsi_bad_req() to use virtio_error(), Greg Kurz, 2016/09/21
- [Qemu-devel] [PATCH v2 6/9] virtio-net: handle virtio_net_receive() errors, Greg Kurz, 2016/09/21
- Re: [Qemu-devel] [PATCH v2 6/9] virtio-net: handle virtio_net_receive() errors,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH v2 9/9] virtio-scsi: handle virtio_scsi_set_config() error, Greg Kurz, 2016/09/21
- Re: [Qemu-devel] [PATCH v2 0/9] virtio: avoid inappropriate QEMU termination, no-reply, 2016/09/21
- Re: [Qemu-devel] [PATCH v2 0/9] virtio: avoid inappropriate QEMU termination, Cornelia Huck, 2016/09/22
- Re: [Qemu-devel] [PATCH v2 0/9] virtio: avoid inappropriate QEMU termination, Stefan Hajnoczi, 2016/09/23