[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] sheepdog: fix NULL dereference in sd_create
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] sheepdog: fix NULL dereference in sd_create |
Date: |
Thu, 19 Jun 2014 17:43:37 +0800 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Jun 17, 2014 at 01:45:35PM +0800, Liu Yuan wrote:
> Following command
>
> qemu-img create -f qcow2 sheepdog:test 20g
>
> will cause core dump because aio_context is NULL in sd_create. We should
> initialize it by qemu_get_aio_context() to avoid NULL dereference.
>
> Cc: address@hidden
> Cc: Kevin Wolf <address@hidden>
> Cc: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Liu Yuan <address@hidden>
> ---
> block/sheepdog.c | 1 +
> 1 file changed, 1 insertion(+)
Sorry about this, it's my fault.
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
pgpX8VXQDkJHc.pgp
Description: PGP signature