Loading
bdev/raid: Fix raid_bdev->sb null pointer
This patch adds a check to ensure that raid_bdev->sb is not NULL, with the goal of prohibiting the creation of a RAID block device using base block devices that have a superblock. Fixes issue #3565 Change-Id: I87985325eac8b623dd28ec01edef7a9e4613850a Signed-off-by:Yankun Li <yankun@staff.sina.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25375 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Community-CI: Mellanox Build Bot Reviewed-by:
Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-by:
GangCao <gang.cao@intel.com>