On Tue, Nov 15 2022 at  9:10P -0500,
Yu Kuai <[email protected]> wrote:

> From: Christoph Hellwig <[email protected]>
> 
> Zero out the pointer to ->slave_dir so that the holder code doesn't
> incorrectly treat the object as alive when add_disk failed or after
> del_gendisk was called.
> 
> Fixes: 89f871af1b26 ("dm: delay registering the gendisk")
> Reported-by: Yu Kuai <[email protected]>
> Signed-off-by: Christoph Hellwig <[email protected]>
> Signed-off-by: Yu Kuai <[email protected]>

Reviewed-by: Mike Snitzer <[email protected]>

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel

Reply via email to