diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-01-26 22:41:09 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-30 14:03:39 -0500 |
commit | c1c9ce52c8674a981af5104e16f3d63f76521563 (patch) | |
tree | 70fb19c024cf6fea4148892644e9bc9acb15ec36 /drivers/scsi/aic7xxx | |
parent | c372f4a82fa3d98e2641664ed79e48dddef48097 (diff) |
[SCSI] aic79xx: 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/aic7xxx')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_osm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 0e4708fd43c8..3c4efa4ae543 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c | |||
@@ -1922,7 +1922,7 @@ ahd_linux_queue_cmd_complete(struct ahd_softc *ahd, struct scsi_cmnd *cmd) | |||
1922 | struct scsi_sense_data *sense; | 1922 | struct scsi_sense_data *sense; |
1923 | 1923 | ||
1924 | sense = (struct scsi_sense_data *) | 1924 | sense = (struct scsi_sense_data *) |
1925 | &cmd->sense_buffer; | 1925 | cmd->sense_buffer; |
1926 | if (sense->extra_len >= 5 && | 1926 | if (sense->extra_len >= 5 && |
1927 | (sense->add_sense_code == 0x47 | 1927 | (sense->add_sense_code == 0x47 |
1928 | || sense->add_sense_code == 0x48)) | 1928 | || sense->add_sense_code == 0x48)) |