projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] sym53c8xx: fix bad memset argument in sym_set_cam_result_error
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
scsi
/
sym53c8xx_2
/
sym_glue.c
diff --git
a/drivers/scsi/sym53c8xx_2/sym_glue.c
b/drivers/scsi/sym53c8xx_2/sym_glue.c
index 21e926dcdab0bfc73d6bc89d85f7c4d177d5c0ea..e939f3813233d19ee5d761bd8e9270fb0b2904fd 100644
(file)
--- a/
drivers/scsi/sym53c8xx_2/sym_glue.c
+++ b/
drivers/scsi/sym53c8xx_2/sym_glue.c
@@
-207,7
+207,7
@@
void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid)
/*
* Bounce back the sense data to user.
*/
- memset(
&
cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
+ memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
memcpy(cmd->sense_buffer, cp->sns_bbuf,
min(SCSI_SENSE_BUFFERSIZE, SYM_SNS_BBUF_LEN));
#if 0