From: Bartlomiej Zolnierkiewicz Date: Sat, 16 Jun 2007 00:24:44 +0000 (+0200) Subject: ide-scsi: fix OOPS in idescsi_expiry() X-Git-Tag: v2.6.22-rc5~24^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d1be0a8225f2cb1cdc356ebb0ae6800f023ce67d;p=linux-2.6-omap-h63xx.git ide-scsi: fix OOPS in idescsi_expiry() drive->driver_data contains pointer to Scsi_Host not idescsi_scsi_t. Signed-off-by: Bartlomiej Zolnierkiewicz --- 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) static int idescsi_expiry(ide_drive_t *drive) { - idescsi_scsi_t *scsi = drive->driver_data; + idescsi_scsi_t *scsi = drive_to_idescsi(drive); idescsi_pc_t *pc = scsi->pc; #if IDESCSI_DEBUG_LOG