summaryrefslogtreecommitdiffstats
path: root/chardev/baum.c
Commit message (Collapse)AuthorAgeFilesLines
* baum: Truncate braille device size to 84x1Samuel Thibault2017-12-211-1/+7
| | | | | | | | | | Baum device bigger than 84 do not actually exist, but the user's own Braille device might be wider than 84 columns. Some guest drivers would be upset by such sizes, so clamp the device size. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Message-Id: <20171211001950.27843-1-samuel.thibault@ens-lyon.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* chardev/baum: fix baum that releases brlapi twiceLiang Yan2017-09-261-0/+1
| | | | | | | | | | 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>
* char: move char devices to chardev/Marc-André Lureau2017-06-021-0/+677
Suggested by Paolo Bonzini during series review. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>