diff options
| author | Xiong Weimin <xiongweimin@kylinos.cn> | 2026-08-05 11:29:31 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-09-07 18:54:04 -0400 |
| commit | 81489b32a21c9360f8750d1fb600155d27452e19 (patch) | |
| tree | 6b5016fd9ae98eea73b7c4f94ca03512c719d28d /tools/lib/python/kdoc/python_version.py | |
| parent | e4f4761879a230aa59e569102a6ab9851847d833 (diff) | |
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.")
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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
