aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libsas')
-rw-r--r--drivers/scsi/libsas/sas_expander.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index 7701ab588404..6fb1f3afd1e0 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -74,6 +74,11 @@ static int smp_execute_task(struct domain_device *dev, void *req, int req_size,
74 74
75 mutex_lock(&dev->ex_dev.cmd_mutex); 75 mutex_lock(&dev->ex_dev.cmd_mutex);
76 for (retry = 0; retry < 3; retry++) { 76 for (retry = 0; retry < 3; retry++) {
77 if (test_bit(SAS_DEV_GONE, &dev->state)) {
78 res = -ECOMM;
79 break;
80 }
81
77 task = sas_alloc_task(GFP_KERNEL); 82 task = sas_alloc_task(GFP_KERNEL);
78 if (!task) { 83 if (!task) {
79 res = -ENOMEM; 84 res = -ENOMEM;