Re: [PATCH v2 15/17] lpfc: Fix driver handling of nvme resources during unload

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

 



On 11/10/2017 02:08 AM, James Smart wrote:
> During driver unload, the driver may crash due to NULL pointers.
> The NULL pointers were due to the driver not protecting itself
> sufficiently during some of the teardown paths.
> Additionally, the driver was not waiting for and cleanup up nvme
> io resources. As such, the driver wasn't making the callbacks
> to the transport, stalling the transports association teardown.
> 
> This patch waits for io clean up before tearding down and adds
> checks for possible NULL pointers.
> 
> Cc: <stable@xxxxxxxxxxxxxxx> # 4.12+
> Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx>
> Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx>
> ---
>  drivers/scsi/lpfc/lpfc_crtn.h |  2 +
>  drivers/scsi/lpfc/lpfc_init.c | 18 ++++++++
>  drivers/scsi/lpfc/lpfc_nvme.c | 96 ++++++++++++++++++++++++++++++++++++++-----
>  3 files changed, 105 insertions(+), 11 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@xxxxxxx			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)



[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