Unverified Commit 03d56375 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1429 nbd: fix null-ptr-dereference while accessing 'nbd->config'

Merge Pull Request from: @ci-robot 
 
PR sync from: Zhong Jinghua <zhongjinghua@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/HOVMIDKZMBMNOQNYQNFHPUF5WRMSNV76/ 
From: Zhong Jinghua <zhongjinghua@huaweicloud.com>

nbd: fix null-ptr-dereference while accessing 'nbd->config'

Yu Kuai (3):
  nbd: fold nbd config initialization into nbd_alloc_config()
  nbd: factor out a helper to get nbd_config without holding
    'config_lock'
  nbd: fix null-ptr-dereference while accessing 'nbd->config'


-- 
2.31.1
 
https://gitee.com/openeuler/kernel/issues/I7EENU 
 
Link:https://gitee.com/openeuler/kernel/pulls/1429

 

Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 8f65c814 749eccf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment