Commit 149d6baf authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

[SCSI] ncr53c8xx: fix sense_buffer access bug

The commit de25deb1 changed
scsi_cmnd.sense_buffer from a static array to a dynamically allocated
buffer. We can't access to sense_buffer in '&cmd->sense_buffer' way.
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent c1c9ce52
...@@ -4967,7 +4967,7 @@ void ncr_complete (struct ncb *np, struct ccb *cp) ...@@ -4967,7 +4967,7 @@ void ncr_complete (struct ncb *np, struct ccb *cp)
sizeof(cp->sense_buf))); sizeof(cp->sense_buf)));
if (DEBUG_FLAGS & (DEBUG_RESULT|DEBUG_TINY)) { if (DEBUG_FLAGS & (DEBUG_RESULT|DEBUG_TINY)) {
u_char * p = (u_char*) & cmd->sense_buffer; u_char *p = cmd->sense_buffer;
int i; int i;
PRINT_ADDR(cmd, "sense data:"); PRINT_ADDR(cmd, "sense data:");
for (i=0; i<14; i++) printk (" %x", *p++); for (i=0; i<14; i++) printk (" %x", *p++);
......
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