In fact the disc_resp buffer will be overwrite by smp response, so we never
found this typo, correct it by using the right one.

>From 43c522be7a5b4ce89de725926a1fbabd70674c64 Mon Sep 17 00:00:00 2001
From: John Gong <john_g...@usish.com>
Date: Fri, 1 Mar 2013 04:08:18 -0500
Subject: [PATCH] use right function to alloc smp reponse

Signed-off-by: John Gong <john_g...@usish.com>
Signed-off-by: Jack Wang <jack_w...@usish.com>
---
 drivers/scsi/libsas/sas_expander.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/libsas/sas_expander.c
b/drivers/scsi/libsas/sas_expander.c
index efc6e72..e071e08 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -388,7 +388,7 @@ int sas_ex_phy_discover(struct domain_device *dev, int
single)
        if (!disc_req)
                return -ENOMEM;
 
-       disc_resp = alloc_smp_req(DISCOVER_RESP_SIZE);
+       disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE);
        if (!disc_resp) {
                kfree(disc_req);
                return -ENOMEM;
-- 
1.7.1

Attachment: 0001-use-right-function-to-alloc-smp-reponse.patch
Description: Binary data

Reply via email to