mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
If we have a partial read that is supposed to be treated as failure but
in this code we forgot to set the error code. Return -EINVAL.
Fixes: 9d8d51735a ("HID: intel-thc-hid: intel-quickspi: Add HIDSPI protocol implementation")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Even Xu <[email protected]>
Reviewed-by: Mark Pearson <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>