[PATCH AUTOSEL 4.18 020/136] USB: serial: kobil_sct: fix modem-status error handling

2018-09-16 Thread Sasha Levin
From: Johan Hovold [ Upstream commit a420b5d939ee58f1d950f0ea782834056520aeaa ] Make sure to return -EIO in case of a short modem-status read request. While at it, split the debug message to not include the (zeroed) transfer-buffer content in case of errors. Fixes: 1da177e4c3f4

[PATCH AUTOSEL 4.18 020/136] USB: serial: kobil_sct: fix modem-status error handling

2018-09-16 Thread Sasha Levin
From: Johan Hovold [ Upstream commit a420b5d939ee58f1d950f0ea782834056520aeaa ] Make sure to return -EIO in case of a short modem-status read request. While at it, split the debug message to not include the (zeroed) transfer-buffer content in case of errors. Fixes: 1da177e4c3f4