diff options
| author | Xiong Weimin <xiongweimin@kylinos.cn> | 2026-08-05 11:29:31 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-09-04 17:06:03 -0400 |
| commit | 54ebfafd10baf74689af0993c8d52a86d58825c7 (patch) | |
| tree | bdfbd95269ffae8b98850f4bd4a00eabc2b4adf4 /scripts/Makefile.thinlto | |
| parent | faa2cf3bdcfab5fe4cedbe4fd0fdda12cbcf19ce (diff) | |
| download | linux-next-54ebfafd10baf74689af0993c8d52a86d58825c7.tar.gz linux-next-54ebfafd10baf74689af0993c8d52a86d58825c7.zip | |
virtio_input: reset device if input_register_device() fails
Probe marks the device DRIVER_OK with virtio_device_ready() before
calling input_register_device(). If registration fails, the error path
cleared vi->ready and called del_vqs() while the device was still live,
so the device could keep DMA to queues that were already torn down.
Match remove/freeze: call virtio_reset_device() on that path before
tearing down the virtqueues.
Fixes: 271c865161c5 ("Add virtio-input driver.")
Cc: stable@vger.kernel.org
Signed-off-by: Xiong Weimin <xiongweimin@kylinos.cn>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260805032931.1606652-1-xiongweimin@kylinos.cn>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
