um: ubd: Retry buffer read on any kind of error
authorGabriel Krisman Bertazi <krisman@collabora.com>
Tue, 17 Mar 2020 00:45:07 +0000 (20:45 -0400)
committerRichard Weinberger <richard@nod.at>
Sun, 29 Mar 2020 21:21:37 +0000 (23:21 +0200)
commite355b2f55efc4633409ada14125c9e28ad2de012
tree445a3507b25758f740ce9cd9a02deab24ce01755
parent6e682d53fc1ef73a169e2a5300326cb23abb32ee
um: ubd: Retry buffer read on any kind of error

Should bulk_req_safe_read return an error, we want to retry the read,
otherwise, even though no IO will be done, os_write_file might still end
up writing garbage to the pipe.

Cc: Martyn Welch <martyn.welch@collabora.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c