Skip to content

Commit

Permalink
ide-scsi: fix OOPS in idescsi_expiry()
Browse files Browse the repository at this point in the history
drive->driver_data contains pointer to Scsi_Host not idescsi_scsi_t.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jun 16, 2007
1 parent ce9b2b0 commit d1be0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ide-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1be0a8

Please sign in to comment.