Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1c454b8 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Jiri Kosina
Browse files

HID: hyperv: Properly disconnect the input device



When we unload the mouse driver, properly disconnect the input device.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Reported-by: default avatarFuzhou Chen <fuzhouch@microsoft.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ba18311d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -548,6 +548,7 @@ static int mousevsc_remove(struct hv_device *dev)
	struct mousevsc_dev *input_dev = hv_get_drvdata(dev);

	vmbus_close(dev->channel);
	hid_hw_stop(input_dev->hid_device);
	hid_destroy_device(input_dev->hid_device);
	mousevsc_free_device(input_dev);