aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ide-scsi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-06-15 20:24:44 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-06-15 20:24:44 -0400
commitd1be0a8225f2cb1cdc356ebb0ae6800f023ce67d (patch)
treef106df13285efff456501772c915e26e018f34ef /drivers/scsi/ide-scsi.c
parentce9b2b0abbf019d5259eb089a1cc256852930f67 (diff)
ide-scsi: fix OOPS in idescsi_expiry()
drive->driver_data contains pointer to Scsi_Host not idescsi_scsi_t. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r--drivers/scsi/ide-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index 8263f752809..bb90df8bdce 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -463,7 +463,7 @@ static inline unsigned long get_timeout(idescsi_pc_t *pc)
463 463
464static int idescsi_expiry(ide_drive_t *drive) 464static int idescsi_expiry(ide_drive_t *drive)
465{ 465{
466 idescsi_scsi_t *scsi = drive->driver_data; 466 idescsi_scsi_t *scsi = drive_to_idescsi(drive);
467 idescsi_pc_t *pc = scsi->pc; 467 idescsi_pc_t *pc = scsi->pc;
468 468
469#if IDESCSI_DEBUG_LOG 469#if IDESCSI_DEBUG_LOG