Dan forget to change sas_alloc_task to sas_alloc_slow_task in pm8001, which will lead to NULL point dereference, fix this. >From b93ecdd72d6eaf96bd9c1d735dac0b350a3b2bff Mon Sep 17 00:00:00 2001 From: Jack Wang <jack_wang@xxxxxxxxx> Date: Tue, 14 Feb 2012 08:27:52 -0500 Subject: [PATCH] fix missed changes during trim sas task of slow path change Signed-off-by: Jack Wang <jack_wang@xxxxxxxxx> --- drivers/scsi/pm8001/pm8001_sas.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index ad36f1a..ab98c41 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -660,7 +660,7 @@ static int pm8001_exec_internal_tmf_task(struct domain_device *dev, struct pm8001_hba_info *pm8001_ha = pm8001_find_ha_by_dev(dev); for (retry = 0; retry < 3; retry++) { - task = sas_alloc_task(GFP_KERNEL); + task = sas_alloc_slow_task(GFP_KERNEL); if (!task) return -ENOMEM; @@ -742,7 +742,7 @@ pm8001_exec_internal_task_abort(struct pm8001_hba_info *pm8001_ha, struct sas_task *task = NULL; for (retry = 0; retry < 3; retry++) { - task = sas_alloc_task(GFP_KERNEL); + task = sas_alloc_slow_task(GFP_KERNEL); if (!task) return -ENOMEM; -- 1.7.4.4
Attachment:
0001-fix-missed-changes-during-trim-sas-task-of-slow-path.patch
Description: Binary data