[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks |
Date: |
Mon, 10 May 2010 09:25:20 +0100 |
> diff --git a/src/virtio-blk.c b/src/virtio-blk.c
> new file mode 100644
> index 0000000..a41c336
> --- /dev/null
> +++ b/src/virtio-blk.c
> @@ -0,0 +1,155 @@
> +// Virtio blovl boot support.
Just noticed the "blovl" typo.
> + char *desc = malloc_tmphigh(MAXDESCSIZE);
> + struct virtiodrive_s *vdrive_g = malloc_fseg(sizeof(*vdrive_g));
> + struct vring_virtqueue *vq = malloc_low(sizeof(*vq));
> + if (!vdrive_g || !desc || !vq) {
> + warn_noalloc();
> + return;
> + }
This error return can still leak.
Stefan