* [PATCH 05/63] ide-cd: add missing 'ireason' masking to cdrom_write_intr()
@ 2007-12-20 0:55 Bartlomiej Zolnierkiewicz
2007-12-21 11:55 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-12-20 0:55 UTC (permalink / raw)
To: linux-ide; +Cc: linux-kernel
Mask 'ireason' variable with 0x3 so the valid interrupt reason value
is passed to cdrom_write_check_ireason() for checking.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/ide-cd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/drivers/ide/ide-cd.c
===================================================================
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1820,7 +1820,7 @@ static ide_startstop_t cdrom_write_intr(
}
/* Read the interrupt reason and the transfer length. */
- ireason = HWIF(drive)->INB(IDE_IREASON_REG);
+ ireason = HWIF(drive)->INB(IDE_IREASON_REG) & 0x3;
lowcyl = HWIF(drive)->INB(IDE_BCOUNTL_REG);
highcyl = HWIF(drive)->INB(IDE_BCOUNTH_REG);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 05/63] ide-cd: add missing 'ireason' masking to cdrom_write_intr()
2007-12-20 0:55 [PATCH 05/63] ide-cd: add missing 'ireason' masking to cdrom_write_intr() Bartlomiej Zolnierkiewicz
@ 2007-12-21 11:55 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2007-12-21 11:55 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, linux-kernel
Bartlomiej Zolnierkiewicz wrote:
> Mask 'ireason' variable with 0x3 so the valid interrupt reason value
> is passed to cdrom_write_check_ireason() for checking.
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
MBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-21 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-20 0:55 [PATCH 05/63] ide-cd: add missing 'ireason' masking to cdrom_write_intr() Bartlomiej Zolnierkiewicz
2007-12-21 11:55 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).