You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HID: ft260: improve error handling of ft260_hid_feature_report_get()
The ft260_hid_feature_report_get() checks if the return size matches the
requested size. But the function can also fail with at least -ENOMEM. Add the
< 0 checks.
In ft260_hid_feature_report_get(), do not do the memcpy to the caller's buffer
if there is an error.
Fixes: 6a82582 ("HID: ft260: add usb hid to i2c host bridge driver")
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Michael Zaidman <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
0 commit comments