Commit 95c9f4d4 authored by John Gong's avatar John Gong Committed by James Bottomley

[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: default avatarJohn Gong <john_gong@usish.com>
Signed-off-by: default avatarJack Wang <jack_wang@usish.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent f19799f4
...@@ -388,7 +388,7 @@ int sas_ex_phy_discover(struct domain_device *dev, int single) ...@@ -388,7 +388,7 @@ int sas_ex_phy_discover(struct domain_device *dev, int single)
if (!disc_req) if (!disc_req)
return -ENOMEM; return -ENOMEM;
disc_resp = alloc_smp_req(DISCOVER_RESP_SIZE); disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE);
if (!disc_resp) { if (!disc_resp) {
kfree(disc_req); kfree(disc_req);
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment