mbox series

[V2,0/2] scsi: two fixes in scsi_add_host_with_dma

Message ID 20210528011838.2122559-1-ming.lei@redhat.com (mailing list archive)
Headers show
Series scsi: two fixes in scsi_add_host_with_dma | expand

Message

Ming Lei May 28, 2021, 1:18 a.m. UTC
Hello Martin,

The 1st patch fixes one double free in failure path of adding host.

The 2nd patch fixes one host device leak in failure path of adding host.

V2:
	- add patch 2 for addressing shost leak in case of adding host
	  failure, reported by John Garry.


Ming Lei (2):
  scsi: core: fix failure handling of scsi_add_host_with_dma
  scsi: core: put shost->shost_gendev in failure handling path

 drivers/scsi/hosts.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Cc: Bart Van Assche <bvanassche@acm.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Hannes Reinecke <hare@suse.de>