Re: [Qemu-devel] [PATCH] sheepdog: fix NULL dereference in sd_create

2014-06-19 Thread Stefan Hajnoczi
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: qemu-devel@nongnu

[Qemu-devel] [PATCH] sheepdog: fix NULL dereference in sd_create

2014-06-16 Thread Liu Yuan
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: qemu-devel@nongnu.org Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- bl