Commit 6bd5393b authored by Zhong Jinghua's avatar Zhong Jinghua Committed by openeuler-sync-bot
Browse files

block: Set memalloc_noio to false in the error path

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



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

In del_gendisk, memalloc_noio is set to false, so it would be better to do
the same thing in the error path.

Fixes: c6b84a94528e ("block: add error handling for device_add_disk / add_disk")
Signed-off-by: default avatarZhong Jinghua <zhongjinghua@huawei.com>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
(cherry picked from commit ffe0955a)
parent 04e36533
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment