diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-01-26 22:41:51 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-30 14:03:39 -0500 |
commit | 149d6bafc4f19784798cf5154bd1f5ff7e407194 (patch) | |
tree | 6c1cadb45495f937e52b59a4b98a74892949d9bb /drivers/scsi/ncr53c8xx.c | |
parent | c1c9ce52c8674a981af5104e16f3d63f76521563 (diff) |
[SCSI] ncr53c8xx: fix sense_buffer access bug
The commit de25deb18016f66dcdede165d07654559bb332bc 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: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
-rw-r--r-- | drivers/scsi/ncr53c8xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index c02771aa6c9b..c5ebf018b378 100644 --- a/drivers/scsi/ncr53c8xx.c +++ b/drivers/scsi/ncr53c8xx.c | |||
@@ -4967,7 +4967,7 @@ void ncr_complete (struct ncb *np, struct ccb *cp) | |||
4967 | sizeof(cp->sense_buf))); | 4967 | sizeof(cp->sense_buf))); |
4968 | 4968 | ||
4969 | if (DEBUG_FLAGS & (DEBUG_RESULT|DEBUG_TINY)) { | 4969 | if (DEBUG_FLAGS & (DEBUG_RESULT|DEBUG_TINY)) { |
4970 | u_char * p = (u_char*) & cmd->sense_buffer; | 4970 | u_char *p = cmd->sense_buffer; |
4971 | int i; | 4971 | int i; |
4972 | PRINT_ADDR(cmd, "sense data:"); | 4972 | PRINT_ADDR(cmd, "sense data:"); |
4973 | for (i=0; i<14; i++) printk (" %x", *p++); | 4973 | for (i=0; i<14; i++) printk (" %x", *p++); |