Commit 3ac98d7a authored by Li Lingfeng's avatar Li Lingfeng
Browse files

dm: add error handling support for add_disk()

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


CVE: NA

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

NULL pointer dereference and uaf will be triggered in del_gendisk() if
add_disk has not complete.
Clear request_queue and gendisk early if add_disk fail.

Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent e2b3e0a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment