From: FUJITA Tomonori Date: Sun, 27 Jan 2008 03:41:51 +0000 (+0900) Subject: [SCSI] ncr53c8xx: fix sense_buffer access bug X-Git-Tag: v2.6.25-rc1~1140^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=149d6bafc4f19784798cf5154bd1f5ff7e407194;p=platform%2Fkernel%2Flinux-3.10.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index c02771aa..c5ebf01 100644 --- a/drivers/scsi/ncr53c8xx.c +++ b/drivers/scsi/ncr53c8xx.c @@ -4967,7 +4967,7 @@ void ncr_complete (struct ncb *np, struct ccb *cp) sizeof(cp->sense_buf))); if (DEBUG_FLAGS & (DEBUG_RESULT|DEBUG_TINY)) { - u_char * p = (u_char*) & cmd->sense_buffer; + u_char *p = cmd->sense_buffer; int i; PRINT_ADDR(cmd, "sense data:"); for (i=0; i<14; i++) printk (" %x", *p++);