Michael Zaidman
82f09a637d
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>
2021-05-27 15:40:34 +02:00
..
2021-03-08 16:32:32 +01:00
2021-05-07 14:32:28 +02:00
2021-02-23 11:35:07 +01:00
2021-05-05 14:31:55 +02:00
2021-05-27 15:40:34 +02:00
2021-05-05 14:29:13 +02:00
2019-05-30 11:26:32 -07:00
2021-04-29 21:47:22 +02:00
2020-08-17 12:17:52 +02:00
2020-03-13 17:33:11 +01:00
2021-05-05 14:40:42 +02:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-02-18 14:43:51 +01:00
2019-05-30 11:26:32 -07:00
2021-01-14 13:13:24 +01:00
2019-06-05 17:36:37 +02:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2020-08-17 11:38:49 +02:00
2021-03-08 14:55:31 +01:00
2019-09-03 16:52:04 +02:00
2020-10-23 13:23:44 +02:00
2021-05-05 14:31:05 +02:00
2019-10-03 15:36:40 -04:00
2021-04-07 12:46:33 +02:00
2020-11-25 17:40:23 +01:00
2019-06-05 17:37:04 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-05-27 15:40:34 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2020-03-18 13:36:21 +01:00
2021-03-08 11:00:24 +01:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2019-08-05 14:18:42 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2020-09-28 08:57:28 +00:00
2019-05-30 11:26:32 -07:00
2021-05-05 14:56:02 +02:00
2021-05-05 14:31:05 +02:00
2021-02-09 10:56:58 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-04-07 18:46:20 +02:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:10 +02:00
2021-04-07 12:48:20 +02:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2017-11-02 11:10:55 +01:00
2021-02-05 10:13:28 +01:00
2021-03-08 11:05:50 +01:00
2017-11-02 11:10:55 +01:00
2019-10-03 15:36:40 -04:00
2021-03-08 11:05:50 +01:00
2021-05-27 15:40:34 +02:00
2020-08-17 11:38:49 +02:00
2021-05-27 15:40:34 +02:00
2019-01-14 20:11:01 +01:00
2020-11-05 11:16:53 +01:00
2020-11-25 14:30:33 +01:00
2020-09-02 12:55:46 -07:00
2019-05-30 11:26:32 -07:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2020-09-03 16:18:55 +02:00
2021-04-07 18:46:20 +02:00
2019-06-05 17:30:28 +02:00
2020-04-01 12:26:12 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2021-03-08 11:08:58 +01:00
2021-02-18 17:41:51 +01:00
2019-06-05 17:36:37 +02:00
2019-10-01 16:21:04 +02:00
2021-05-05 14:47:16 +02:00
2018-06-25 15:23:40 +02:00
2019-05-30 11:26:32 -07:00
2020-10-23 16:16:31 -07:00
2021-02-05 10:16:45 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-10-15 20:41:43 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-05 14:21:08 +02:00
2021-05-26 12:36:46 +02:00
2021-05-05 14:36:18 +02:00
2019-05-30 11:26:35 -07:00
2021-01-18 10:55:05 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 09:21:21 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-05 14:26:38 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2019-04-17 16:39:43 +02:00
2021-01-08 14:05:48 +01:00
2021-04-07 18:46:20 +02:00
2019-02-21 12:00:54 +01:00
2021-04-07 18:46:20 +02:00
2019-02-21 12:00:54 +01:00
2020-07-20 12:24:41 +02:00
2019-02-21 12:00:53 +01:00
2020-09-30 22:44:26 +02:00
2019-05-30 11:26:32 -07:00
2021-01-07 10:14:58 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 14:17:22 +02:00
2020-06-19 14:17:22 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2020-11-27 15:48:31 +01:00
2021-05-05 14:29:13 +02:00
2021-05-05 14:21:08 +02:00
2020-01-10 15:34:28 +01:00
2021-04-07 18:46:20 +02:00
2021-04-29 21:47:03 +02:00
2021-04-13 08:19:41 +02:00
2019-11-06 21:37:29 +01:00