]> git.hungrycats.org Git - linux/commit
um: ubd: Initialize ubd's disk pointer in ubd_add
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 4 Nov 2024 16:32:00 +0000 (00:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:27 +0000 (13:54 +0100)
commit17c6ca854ba3c99c17075934925779b4d9c391c0
tree1ed1e2616433e7f1dfcc91ec7ef48a3fe7dbe9c8
parentaa4ac48bcab016336e0583af33993bffceb315ab
um: ubd: Initialize ubd's disk pointer in ubd_add

[ Upstream commit df700802abcac3c7c4a4ced099aa42b9a144eea8 ]

Currently, the initialization of the disk pointer in the ubd structure
is missing. It should be initialized with the allocated gendisk pointer
in ubd_add().

Fixes: 32621ad7a7ea ("ubd: remove the ubd_gendisk array")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Link: https://patch.msgid.link/20241104163203.435515-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/drivers/ubd_kern.c