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-10-07 10:48:49 -07: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-10-06 11:04:57 -07:00
2022-10-06 12:53:15 -07:00
2022-10-06 11:04:57 -07:00
2022-10-06 11:51:49 -07:00
2022-10-05 10:38:24 -07:00
2022-10-07 09:47:47 -07:00
2022-09-30 20:05:16 +02:00
2022-10-04 19:02:54 -07:00
2022-10-06 11:04:57 -07:00
2022-09-21 20:33:49 +02:00
2022-10-06 11:51:49 -07:00
2022-10-06 11:51:49 -07:00
2022-10-05 10:38:24 -07:00
2022-10-07 09:35:50 -07:00
2022-10-07 11:04:35 -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-10-07 09:35:50 -07:00
2022-10-06 12:10:37 -07: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-10-04 19:02:54 -07:00
2022-10-04 19:27:45 -07: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-05 11:24:12 -07: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