diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-12-24 09:23:43 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-12-24 09:23:43 -0500 |
commit | 31a71191650dce1bb4a7de6147f1947795826cda (patch) | |
tree | 56c555ecd912ad9453172eb6204bcdd76a01ad40 | |
parent | 35379c071a61d025153723f2acb2cc19cc3ca78c (diff) |
ide-cd: add missing 'ireason' masking to cdrom_write_intr()
Mask 'ireason' variable with 0x3 so the valid interrupt reason value
is passed to cdrom_write_check_ireason() for checking.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index d4b298eb5efe..30f27585a7d3 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1826,7 +1826,7 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive) | |||
1826 | } | 1826 | } |
1827 | 1827 | ||
1828 | /* Read the interrupt reason and the transfer length. */ | 1828 | /* Read the interrupt reason and the transfer length. */ |
1829 | ireason = HWIF(drive)->INB(IDE_IREASON_REG); | 1829 | ireason = HWIF(drive)->INB(IDE_IREASON_REG) & 0x3; |
1830 | lowcyl = HWIF(drive)->INB(IDE_BCOUNTL_REG); | 1830 | lowcyl = HWIF(drive)->INB(IDE_BCOUNTL_REG); |
1831 | highcyl = HWIF(drive)->INB(IDE_BCOUNTH_REG); | 1831 | highcyl = HWIF(drive)->INB(IDE_BCOUNTH_REG); |
1832 | 1832 | ||