mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
In virtio_fs_add_queues_sysfs(), the code incorrectly checks fs->mqs_kobj
after calling kobject_create_and_add(). Change the check to fsvq->kobj
(fs->mqs_kobj -> fsvq->kobj) to ensure the per-queue kobject is
successfully created.
Fixes: 87cbdc396a ("virtio_fs: add sysfs entries for queue information")
Signed-off-by: Alok Tiwari <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>