]> git.baikalelectronics.ru Git - kernel.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)
commite9a5bf03077b373e8f4ff0c696a0aa9822ac8700
treee652a4aeddc2b906bdaf4703d508dac7c72e6b0d
parentcf8da08fbd9c71a647ce6cb608f2a6f751e2160e
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