aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_discover.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libsas/sas_discover.c')
-rw-r--r--drivers/scsi/libsas/sas_discover.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c
index 4d768db1b567..328a78ad6aa0 100644
--- a/drivers/scsi/libsas/sas_discover.c
+++ b/drivers/scsi/libsas/sas_discover.c
@@ -304,9 +304,9 @@ static int sas_get_port_device(struct asd_sas_port *port)
304 port->disc.max_level = 0; 304 port->disc.max_level = 0;
305 305
306 dev->rphy = rphy; 306 dev->rphy = rphy;
307 spin_lock(&port->dev_list_lock); 307 spin_lock_irq(&port->dev_list_lock);
308 list_add_tail(&dev->dev_list_node, &port->dev_list); 308 list_add_tail(&dev->dev_list_node, &port->dev_list);
309 spin_unlock(&port->dev_list_lock); 309 spin_unlock_irq(&port->dev_list_lock);
310 310
311 return 0; 311 return 0;
312} 312}
@@ -703,9 +703,9 @@ static void sas_discover_domain(struct work_struct *work)
703 sas_rphy_free(dev->rphy); 703 sas_rphy_free(dev->rphy);
704 dev->rphy = NULL; 704 dev->rphy = NULL;
705 705
706 spin_lock(&port->dev_list_lock); 706 spin_lock_irq(&port->dev_list_lock);
707 list_del_init(&dev->dev_list_node); 707 list_del_init(&dev->dev_list_node);
708 spin_unlock(&port->dev_list_lock); 708 spin_unlock_irq(&port->dev_list_lock);
709 709
710 kfree(dev); /* not kobject_register-ed yet */ 710 kfree(dev); /* not kobject_register-ed yet */
711 port->port_dev = NULL; 711 port->port_dev = NULL;