Spdk/test/unit/lib/scsi
Daniel Verkamp a7d816bfbe ut/scsi/dev: fix memory leak in lun_construct stub
Check if a LUN already exists before allocating the spdk_scsi_lun
structure - this matches the real implementation of
spdk_scsi_lun_construct().

Fixes: e44731d659 ("scsi: Remove the claimed flag from LUN")

Change-Id: I529648f93cd21e9f19ce82ef571cabe9c7e8c49a
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/390903
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2017-12-07 16:52:05 -05:00
..
dev.c ut/scsi/dev: fix memory leak in lun_construct stub 2017-12-07 16:52:05 -05:00
lun.c scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
scsi_bdev.c scsi: Make the pending tasks handling logic correct for reset 2017-12-07 13:43:52 -05:00
scsi.c scsi: Remove global unmap config parameters 2017-08-11 19:54:32 -04:00
Makefile test: move SCSI library unit tests to test/unit 2017-06-20 13:46:07 -04:00