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>
This commit is contained in:
parent
ce9b2b0abb
commit
d1be0a8225
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ static inline unsigned long get_timeout(idescsi_pc_t *pc)
|
||||||
|
|
||||||
static int idescsi_expiry(ide_drive_t *drive)
|
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;
|
idescsi_pc_t *pc = scsi->pc;
|
||||||
|
|
||||||
#if IDESCSI_DEBUG_LOG
|
#if IDESCSI_DEBUG_LOG
|
||||||
|
|
Loading…
Reference in a new issue