On 29/03/2016 13:20, marcandre.lur...@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lur...@redhat.com>
> 
> Since f1060c55bf1377b4, the pointer is directly passed to
> qemu_ram_free(). However, on initialization failure, it may be called
> with a NULL pointer. Return immediately in this case.
> 
> This fixes a SEGV when memory initialization failed, for example
> permission denied on open backing store /dev/hugepages, with -object
> memory-backend-file,mem-path=/dev/hugepages.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00005555556e67e7 in qemu_ram_free (block=0x0) at 
> /home/elmarco/src/qemu/exec.c:1775
> 
> Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Looks good, thanks!  I'll push it during hard freeze.

Paolo

Reply via email to