baum: Truncate braille device size to 84x1
commit1ef7c96ee2133753f4aa48617ddbef10d5a88fc9
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 11 Dec 2017 00:19:50 +0000 (11 01:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Dec 2017 08:22:44 +0000 (21 09:22 +0100)
treed8bba60203a5a0f8989e6a768891fea9b864f5f7
parenta4926d99129a1d8072fc4681cd4efdb214f65ed4
baum: Truncate braille device size to 84x1

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.c