]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tty: hvc: replace BUG_ON() with negative return value
authorJuergen Gross <jgross@suse.com>
Wed, 7 Jul 2021 09:10:45 +0000 (11:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 13:57:28 +0000 (15:57 +0200)
commite679004dec37566f658a255157d3aed9d762a2b7
treee652a4aeddc2b906bdaf4703d508dac7c72e6b0d
parent5b869a06a2790a2d1f3ee965e8f38246bfc32d24
tty: hvc: replace BUG_ON() with negative return value

Xen frontends shouldn't BUG() in case of illegal data received from
their backends. So replace the BUG_ON()s when reading illegal data from
the ring page with negative return values.

Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210707091045.460-1-jgross@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_xen.c