Skip to contentSkip to conversation

libsas: use right function to alloc smp response

PATCH New Jack Wang 1 participant 1 message Mar 6, 2013

Subsystems (2)
lore
Share & tools
lore

Jack Wang

author
#0 lore raw

PATCH 1/1 libsas: use right function to alloc smp response

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.

Quoted 1 line

From 43c522be7a5b4ce89de725926a1fbabd70674c64 Mon Sep 17 00:00:00 2001

From: John Gong <[email protected]>
Date: Fri, 1 Mar 2013 04:08:18 -0500
Subject: [PATCH] use right function to alloc smp reponse

---
 drivers/scsi/libsas/sas_expander.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/drivers/scsi/libsas/sas_expander.c
index efc6e72..e071e08 100644

drivers/scsi/libsas/sas_expander.c +0 -0
@@ -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;

Signature · 1 line
1.7.1
Quoted 1 line

From 43c522be7a5b4ce89de725926a1fbabd70674c64 Mon Sep 17 00:00:00 2001

From: John Gong <[email protected]>
Date: Fri, 1 Mar 2013 04:08:18 -0500
Subject: [PATCH] use right function to alloc smp reponse

---
 drivers/scsi/libsas/sas_expander.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/libsas/sas_expander.c +1 -1
index efc6e72..e071e08 100644
@@ -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;
Signature · 1 line
1.7.1