diff options
author | Linus Torvalds | 2019-06-02 18:26:34 +0200 |
---|---|---|
committer | Linus Torvalds | 2019-06-02 18:26:34 +0200 |
commit | 1975b337ce26b53814f1b5c55b260649a7115393 (patch) | |
tree | a79880bae413861339268d83c9777b09ea8e669c /drivers/scsi/libsas/sas_expander.c | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
parent | scsi: libsas: delete sas port if expander discover failed (diff) | |
download | kernel-qcow2-linux-1975b337ce26b53814f1b5c55b260649a7115393.tar.gz kernel-qcow2-linux-1975b337ce26b53814f1b5c55b260649a7115393.tar.xz kernel-qcow2-linux-1975b337ce26b53814f1b5c55b260649a7115393.zip |
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley:
"Six minor fixes to device drivers and one to the multipath alua
handler.
The most extensive fix is the zfcp port remove prevention one, but
it's impact is only s390"
* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: libsas: delete sas port if expander discover failed
scsi: libsas: only clear phy->in_shutdown after shutdown event done
scsi: scsi_dh_alua: Fix possible null-ptr-deref
scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask
scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs)
scsi: zfcp: fix missing zfcp_port reference put on -EBUSY from port_remove
scsi: libcxgbi: add a check for NULL pointer in cxgbi_check_route()
Diffstat (limited to 'drivers/scsi/libsas/sas_expander.c')
-rw-r--r-- | drivers/scsi/libsas/sas_expander.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 83f2fd70ce76..9f7e2457360e 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c @@ -1019,6 +1019,8 @@ static struct domain_device *sas_ex_discover_expander( list_del(&child->dev_list_node); spin_unlock_irq(&parent->port->dev_list_lock); sas_put_device(child); + sas_port_delete(phy->port); + phy->port = NULL; return NULL; } list_add_tail(&child->siblings, &parent->ex_dev.children); |