From: Gleb Natapov <gleb@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks
Date: Mon, 10 May 2010 11:29:39 +0300 [thread overview]
Message-ID: <20100510082939.GL24787@redhat.com> (raw)
In-Reply-To: <AANLkTinlBuVia3qDSpEdnnui4geZvJzQy0iKBI0zCGmo@mail.gmail.com>
On Mon, May 10, 2010 at 09:25:20AM +0100, Stefan Hajnoczi wrote:
> > 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.
>
Oh Gosh, programming is hard. Why don't we write bios in python?
--
Gleb.
next prev parent reply other threads:[~2010-05-10 8:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 8:11 [Qemu-devel] [PATCHv2] Support for booting from virtio disks Gleb Natapov
2010-05-10 8:25 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-10 8:29 ` Gleb Natapov [this message]
2010-05-10 15:48 ` Anthony Liguori
2010-05-10 15:54 ` Gleb Natapov
2010-05-10 15:58 ` Anthony Liguori
2010-05-10 16:09 ` Gleb Natapov
2010-05-13 16:49 ` [Qemu-devel] Re: [SeaBIOS] " Avi Kivity
2010-05-16 8:28 ` Gleb Natapov
2010-05-11 8:19 ` [Qemu-devel] " Avi Kivity
2010-05-11 9:04 ` Stefan Hajnoczi
2010-05-11 12:33 ` Gleb Natapov
2010-05-11 12:45 ` [Qemu-devel] Re: [SeaBIOS] " Kevin O'Connor
2010-05-11 12:47 ` Gleb Natapov
2010-05-12 0:44 ` Kevin O'Connor
2010-05-11 12:31 ` [Qemu-devel] " Gleb Natapov
2010-05-12 7:22 ` Avi Kivity
2010-05-12 7:55 ` Gleb Natapov
2010-05-12 12:57 ` Kevin O'Connor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100510082939.GL24787@redhat.com \
--to=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).