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: NMatteo Croce <mcroce@redhat.com> Tested-by: NJason Gunthorpe <jgg@mellanox.com> Tested-by: NLeon Romanovsky <leonro@mellanox.com> Signed-off-by: NNicholas Piggin <npiggin@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录