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: <[email protected]> # 4.12+
> Signed-off-by: Dick Kennedy <[email protected]>
> Signed-off-by: James Smart <[email protected]>
> ---
>  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 <[email protected]>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Teamlead Storage & Networking
[email protected]                                   +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)

Reply via email to