Commit e752a398 authored by Yu Kuai's avatar Yu Kuai Committed by Yongqiang Liu
Browse files

nbd: factor out a helper to get nbd_config without holding 'config_lock'

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


CVE: NA

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

There are no functional changes, just to make code cleaner and prepare
to fix null-ptr-dereference while accessing 'nbd->config'.

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
conflict:
	drivers/block/nbd.c
Signed-off-by: default avatarZhong Jinghua <zhongjinghua@huawei.com>
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 9d0422bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment