Yang Yingliang
b5bcb94b09
HID: hyperv: fix possible memory leak in mousevsc_probe()
...
If hid_add_device() returns error, it should call hid_destroy_device()
to free hid_dev which is allocated in hid_allocate_device().
Fixes: 74c4fb058083 ("HID: hv_mouse: Properly add the hid device")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2022-11-02 14:34:56 +01:00
..
2022-10-05 10:38:24 -07:00
2022-08-30 11:12:52 +01:00
2022-09-02 10:50:08 -07:00
2022-10-07 10:48:49 -07:00
2022-08-16 12:46:26 +02:00
2022-10-04 19:12:16 -07:00
2022-09-07 11:00:30 +03:00
2022-10-07 09:19:14 -07:00
2022-09-19 10:33:39 -07:00
2022-10-06 11:04:57 -07:00
2022-09-16 20:42:18 +01:00
2022-10-04 18:54:33 -07:00
2022-08-11 14:41:52 -07:00
2022-09-22 14:26:37 +02:00
2022-10-06 12:53:15 -07:00
2022-10-06 11:04:57 -07:00
2022-10-04 18:54:33 -07:00
2022-09-24 18:05:53 -07:00
2022-09-26 03:59:43 +09:00
2022-09-05 11:54:50 +05:30
2022-10-06 17:22:11 -07:00
2022-10-04 10:00:25 +02:00
2022-08-16 12:46:26 +02:00
2022-10-06 11:51:49 -07:00
2022-09-19 12:58:19 +08:00
2022-10-05 10:38:24 -07:00
2022-10-07 09:47:47 -07:00
2022-11-02 14:34:56 +01:00
2022-09-30 20:05:16 +02:00
2022-10-04 19:02:54 -07:00
2022-09-21 09:24:29 +01:00
2022-10-06 11:04:57 -07:00
2022-09-21 20:33:49 +02:00
2022-10-04 18:54:33 -07:00
2022-09-28 19:20:49 -07:00
2022-10-04 18:54:33 -07:00
2022-10-06 11:51:49 -07:00
2022-10-06 11:51:49 -07:00
2022-10-03 17:44:18 -07:00
2022-10-05 10:38:24 -07:00
2022-09-17 20:37:23 +02:00
2022-10-07 09:35:50 -07:00
2022-10-07 11:04:35 -07:00
2022-09-12 17:04:15 +02:00
2022-10-04 18:54:33 -07:00
2022-10-06 17:22:11 -07:00
2022-09-28 10:09:29 +02:00
2022-10-06 11:04:57 -07:00
2022-10-06 11:04:57 -07:00
2022-09-16 20:42:18 +01:00
2022-09-24 18:14:12 -07:00
2022-10-07 09:35:50 -07:00
2022-10-04 18:54:33 -07:00
2022-08-16 10:48:08 +05:30
2022-10-06 12:10:37 -07:00
2022-08-15 09:55:34 -07:00
2022-09-27 08:12:16 +02:00
2022-08-15 20:31:35 +02:00
2022-10-06 11:51:49 -07:00
2022-10-06 11:04:57 -07:00
2022-10-06 11:04:57 -07:00
2022-10-05 10:38:24 -07:00
2022-09-24 18:07:42 +02:00
2022-08-16 12:46:26 +02:00
2022-09-24 19:32:46 +02:00
2022-09-27 17:33:11 -07:00
2022-10-04 19:02:54 -07:00
2022-08-22 19:30:02 +02:00
2022-10-04 19:27:45 -07:00
2022-08-16 01:40:24 -04:00
2022-10-06 11:04:57 -07:00
2022-08-16 12:46:26 +02:00
2022-10-07 09:19:14 -07:00
2022-10-07 09:35:50 -07:00
2022-10-06 11:22:25 -07:00
2022-09-13 15:05:38 +01:00
2022-10-04 19:36:53 -07:00
2022-10-07 11:04:35 -07:00
2022-10-07 09:35:50 -07:00
2022-10-06 11:04:57 -07:00
2022-10-04 13:38:03 -07:00
2022-10-04 13:38:03 -07:00
2022-10-06 11:22:25 -07:00
2022-10-07 09:19:14 -07:00
2022-10-05 12:02:07 -07:00
2022-10-04 13:38:03 -07:00
2022-09-09 07:44:33 -04:00
2022-10-03 17:44:18 -07:00
2022-10-05 11:24:12 -07:00
2022-09-01 13:00:48 -06:00
2022-08-16 01:40:24 -04:00
2022-08-16 12:46:26 +02:00
2022-10-06 11:04:57 -07:00
2022-09-23 08:31:24 -07:00