Skip to content
Commit 7f2bf784 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Greg Kroah-Hartman
Browse files

tty: hvc: hvc_write() fix break condition

Commit 550ddadc

 ("tty: hvc: hvc_write() may sleep") broke the
termination condition in case the driver stops accepting characters.
This can result in unnecessary polling of the busy driver.

Restore it by testing the hvc_push return code.

Tested-by: default avatarMatteo Croce <mcroce@redhat.com>
Tested-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Tested-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 68b2fc71
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment