scsi: qla2xxx: Fix some memory corruption
This was supposed to be "data" instead of "&data". The current code will
corrupt the stack.
Link: https://lore.kernel.org/r/YA6E0geUlL9Hs04A@mwanda
Fixes: dbf1f53cfd ("scsi: qla2xxx: Implementation to get and manage host, target stats and initiator port")
Acked-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
4d82e9db42
commit
bc2b4e6802
1 changed files with 1 additions and 1 deletions
|
|
@ -2667,7 +2667,7 @@ qla2x00_get_tgt_stats(struct bsg_job *bsg_job)
|
|||
|
||||
bsg_reply->reply_payload_rcv_len =
|
||||
sg_copy_from_buffer(bsg_job->reply_payload.sg_list,
|
||||
bsg_job->reply_payload.sg_cnt, &data,
|
||||
bsg_job->reply_payload.sg_cnt, data,
|
||||
sizeof(struct ql_vnd_tgt_stats_resp));
|
||||
|
||||
bsg_reply->result = DID_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue