On 02/06/2021 14:30, Ming Lei wrote:
Hello Martin, Fix failure handling of alloc/add host code, and related device release handling. Ming Lei (4): scsi: core: fix error handling of scsi_host_alloc scsi: core: fix failure handling of scsi_add_host_with_dma scsi: core: put .shost_dev in failure path if host state becomes running scsi: core: only put parent device if host state isn't in SHOST_CREATED drivers/scsi/hosts.c | 47 ++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 21 deletions(-) Cc: Bart Van Assche <bvanassche@xxxxxxx> Cc: John Garry <john.garry@xxxxxxxxxx> Cc: Hannes Reinecke <hare@xxxxxxx>
I tested a single error path in each of scsi_host_alloc() and scsi_add_host_with_dma(), and it looked ok, so:
Tested-by: John Garry <john.garry@xxxxxxxxxx>