diff options
author | John Gong <john_gong@usish.com> | 2013-03-05 21:43:03 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-04-06 06:07:21 -0400 |
commit | 95c9f4d4da6c4e445a9dd58c8382356520ea91a0 (patch) | |
tree | 7dc6036a7291c924221109a53f376c626eb5d89a /drivers/scsi/libsas/sas_expander.c | |
parent | f19799f49d1a03f39d5e53fa1bf05db4820c86c2 (diff) |
[SCSI] 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.
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>
Diffstat (limited to 'drivers/scsi/libsas/sas_expander.c')
-rw-r--r-- | 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 aec2e0da5016..588affd6fde7 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) | |||
388 | if (!disc_req) | 388 | if (!disc_req) |
389 | return -ENOMEM; | 389 | return -ENOMEM; |
390 | 390 | ||
391 | disc_resp = alloc_smp_req(DISCOVER_RESP_SIZE); | 391 | disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); |
392 | if (!disc_resp) { | 392 | if (!disc_resp) { |
393 | kfree(disc_req); | 393 | kfree(disc_req); |
394 | return -ENOMEM; | 394 | return -ENOMEM; |