Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

John Gong and committed by
James Bottomley
95c9f4d4 f19799f4

+1 -1
+1 -1
drivers/scsi/libsas/sas_expander.c
··· 388 388 if (!disc_req) 389 389 return -ENOMEM; 390 390 391 - disc_resp = alloc_smp_req(DISCOVER_RESP_SIZE); 391 + disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); 392 392 if (!disc_resp) { 393 393 kfree(disc_req); 394 394 return -ENOMEM;