[SCSI] libsas: use right function to alloc smp response
authorJohn Gong <john_gong@usish.com>
Wed, 6 Mar 2013 02:43:03 +0000 (10:43 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 6 Apr 2013 10:07:21 +0000 (11:07 +0100)
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.

Signed-off-by: John Gong <john_gong@usish.com>
Signed-off-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_expander.c

index aec2e0da50164ca688cc9e2ea95355f0aeaf4669..588affd6fde789973c13c9933c1d8c5a71aa8553 100644 (file)
@@ -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;