qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

chardev/baum: fix baum that releases brlapi twice

Error process of baum_chr_open needs to set brlapi null, so it won't
get released twice in char_braille_finalize, which will cause
"/usr/bin/qemu-system-x86_64: double free or corruption (!prev)"

Signed-off-by: Liang Yan <lyan@suse.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

authored by

Liang Yan and committed by
Michael Tokarev
98e87903 a295d244

+1
+1
chardev/baum.c
··· 643 643 error_setg(errp, "brlapi__openConnection: %s", 644 644 brlapi_strerror(brlapi_error_location())); 645 645 g_free(handle); 646 + baum->brlapi = NULL; 646 647 return; 647 648 } 648 649 baum->deferred_init = 0;