From 675aae24232750e5a41c0a10bb1195fa4bb63d42 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Fri, 15 Jan 2021 13:54:55 -0800 Subject: device: return errors from ipc scanner The code as written will drop any read errors on the floor. Fix that. Signed-off-by: Josh Bleecher Snyder --- device/uapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/uapi.go b/device/uapi.go index 370ad4e..dbb60b6 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -393,7 +393,7 @@ func (device *Device) IpcSetOperation(r io.Reader) error { } } - return nil + return scanner.Err() } func (device *Device) IpcGet() (string, error) { -- cgit v1.2.3