diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libsas/sas_expander.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 874e29d9533f..f84084bba2f0 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c | |||
@@ -849,6 +849,9 @@ static struct domain_device *sas_ex_discover_expander( | |||
849 | 849 | ||
850 | res = sas_discover_expander(child); | 850 | res = sas_discover_expander(child); |
851 | if (res) { | 851 | if (res) { |
852 | spin_lock_irq(&parent->port->dev_list_lock); | ||
853 | list_del(&child->dev_list_node); | ||
854 | spin_unlock_irq(&parent->port->dev_list_lock); | ||
852 | kfree(child); | 855 | kfree(child); |
853 | return NULL; | 856 | return NULL; |
854 | } | 857 | } |