Commit f13656bb authored by Zhong Jinghua's avatar Zhong Jinghua Committed by Li Nan
Browse files

mtd/ubi/block: Fix uaf problem in ubiblock_cleanup

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I81XCK



----------------------------------------

put_disk should be placed after idr_remove, otherwise it will trigger
the uaf problem of dev->gd.

Fixes: 77567b25 ("ubi: use blk_mq_alloc_disk and blk_cleanup_disk")
Signed-off-by: default avatarZhong Jinghua <zhongjinghua@huawei.com>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent a18856a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment