linux/drivers/scsi/cxlflash
Matthew R. Ochs 8b5b1e871a cxlflash: Correct usage of scsi_host_put()
Currently, scsi_host_put() is being called prematurely in the
remove path and is missing entirely in an error cleanup path.
The former can lead to memory being freed too early with
subsequent access potentially corrupting data whilst the former
would result in a memory leak.

Move the usage on remove to be the last cleanup action taken
and introduce a call to scsi_host_put() in the one initialization
error path that does not use remove to cleanup.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
2015-10-30 17:15:02 +09:00
..
common.h cxlflash: Fix AFU version access/storage and add check 2015-10-30 17:14:41 +09:00
Kconfig
lunmgt.c cxlflash: Fix to avoid invalid port_sel value 2015-10-30 16:57:21 +09:00
main.c cxlflash: Correct usage of scsi_host_put() 2015-10-30 17:15:02 +09:00
main.h cxlflash: Fix host link up event handling 2015-10-30 17:12:22 +09:00
Makefile cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00
sislite.h cxlflash: Fix AFU version access/storage and add check 2015-10-30 17:14:41 +09:00
superpipe.c cxlflash: Correct naming of limbo state and waitq 2015-10-30 17:03:00 +09:00
superpipe.h cxlflash: Fix context encode mask width 2015-10-30 17:02:06 +09:00
vlun.c cxlflash: Fix data corruption when vLUN used over multiple cards 2015-10-30 17:01:07 +09:00
vlun.h cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00