summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorMichael Zaidman <michael.zaidman@gmail.com>2021-05-11 13:12:08 +0300
committerJiri Kosina <jkosina@suse.cz>2021-05-27 16:40:34 +0300
commit82f09a637dd3215bce5314664f0171cdc3e43bb5 (patch)
treea56768dc27c6007d05318433152e9362a40b8386 /.gitignore
parent4fb125192563670e820991de48f8db495ecc7ff7 (diff)
downloadlinux-82f09a637dd3215bce5314664f0171cdc3e43bb5.tar.xz
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: 6a82582d9fa4 ("HID: ft260: add usb hid to i2c host bridge driver") Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions