Commit 46906bf8 authored by Ye Bin's avatar Ye Bin Committed by Yang Yingliang
Browse files

dm cache metadata: Avoid returning cmd->bm wild pointer on error



mainline inclusion
from mainline-v5.9
commit d16ff19e
category: bugfix
bugzilla: 41672
CVE: NA

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

Maybe __create_persistent_data_objects() caller will use PTR_ERR as a
pointer, it will lead to some strange things.

Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 391eab17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment