Spdk/lib
Kozlowski Mateusz 6a26cb6053 lib/ftl: Fix findings of static code analysis
A metadata region without mirror should have the INVALID enum set,
otherwise it risks touching invalid parts of the array.

The sb_shm_md not being set to NULL could cause the code to touch this
freed pointer in the error path in ftl_md_create -> ftl_md_create_shm ->
ftl_md_invalidate_shm calls.

Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
Signed-off-by: Mariusz Barczak <mariusz.barczak@intel.com>
Change-Id: I7fe9694dad535de5f6b2a4af27400fa125480605
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15258
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2022-11-22 10:01:30 +00:00
..
accel lib/accel: set RPC accel_get_opc_assignments as SPDK_RPC_RUNTIME 2022-11-17 08:57:53 +00:00
bdev bdev: remove generation of UUIDs for bdevs that do not provide one 2022-11-18 08:38:13 +00:00
blob update Intel copyright notices 2022-11-10 08:28:53 +00:00
blobfs update Intel copyright notices 2022-11-10 08:28:53 +00:00
conf update Intel copyright notices 2022-11-10 08:28:53 +00:00
dma update Intel copyright notices 2022-11-10 08:28:53 +00:00
env_dpdk env_dpdk: allow 2211.c file to build against older DPDK 2022-11-15 08:31:28 +00:00
env_ocf update Intel copyright notices 2022-11-10 08:28:53 +00:00
event lib/rpc: add RPC allow list 2022-11-15 08:31:02 +00:00
ftl lib/ftl: Fix findings of static code analysis 2022-11-22 10:01:30 +00:00
idxd update Intel copyright notices 2022-11-10 08:28:53 +00:00
init rpc: print device type in framework_get_pci_devices 2022-11-21 16:15:44 +00:00
ioat update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi update Intel copyright notices 2022-11-10 08:28:53 +00:00
json update Intel copyright notices 2022-11-10 08:28:53 +00:00
jsonrpc update Intel copyright notices 2022-11-10 08:28:53 +00:00
log update Intel copyright notices 2022-11-10 08:28:53 +00:00
lvol update Intel copyright notices 2022-11-10 08:28:53 +00:00
nbd update Intel copyright notices 2022-11-10 08:28:53 +00:00
notify update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme nvme: execute hotplug monitor even if hotplug_fd < 0 2022-11-21 16:15:44 +00:00
nvmf update Intel copyright notices 2022-11-10 08:28:53 +00:00
rdma update Intel copyright notices 2022-11-10 08:28:53 +00:00
reduce update Intel copyright notices 2022-11-10 08:28:53 +00:00
rocksdb update Intel copyright notices 2022-11-10 08:28:53 +00:00
rpc lib/rpc: add RPC allow list 2022-11-15 08:31:02 +00:00
scsi update Intel copyright notices 2022-11-10 08:28:53 +00:00
sock update Intel copyright notices 2022-11-10 08:28:53 +00:00
thread update Intel copyright notices 2022-11-10 08:28:53 +00:00
trace update Intel copyright notices 2022-11-10 08:28:53 +00:00
trace_parser update Intel copyright notices 2022-11-10 08:28:53 +00:00
ut_mock update Intel copyright notices 2022-11-10 08:28:53 +00:00
util lib/util: add strarray utility functions 2022-11-15 08:31:02 +00:00
vfio_user update Intel copyright notices 2022-11-10 08:28:53 +00:00
vfu_tgt update Intel copyright notices 2022-11-10 08:28:53 +00:00
vhost update Intel copyright notices 2022-11-10 08:28:53 +00:00
virtio update Intel copyright notices 2022-11-10 08:28:53 +00:00
vmd update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00