Re: [PATCH 0/4] scsi: fix failure handling of alloc/add host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux