summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorYuho Choi <oss.patchbox@gmail.com>2026-09-22 17:11:41 -0400
committerMichael S. Tsirkin <mst@redhat.com>2026-11-02 09:07:01 -0500
commitf4f6e9a9cb349003d333f0776de94f12ac95b8d2 (patch)
treebb2880cfaf4aa7faf9a8cbb0b1f3bd75795ae75b /include/linux/timerqueue.h
parent8689ee3842daf24cd886b75cc8bd3c55e7d02199 (diff)
virtio_blk: Reset device on probe error paths after DRIVER_OK
virtblk_probe() marks the device ready before revalidating zones and adding the disk, and either of those can fail. The out_cleanup_disk path they take goes on to delete the virtqueues, but nothing tells the device to stop first, so it is still live when the rings are freed. Reset the device at out_cleanup_disk, which is only reachable after virtio_device_ready(). virtblk_remove() and virtblk_freeze_priv() both reset before deleting the virtqueues for the same reason. Fixes: dbb301f91fc8 ("virtio_blk: add error handling support for add_disk()") Signed-off-by: Yuho Choi <oss.patchbox@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260922211207.523999-1-oss.patchbox@gmail.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions