lkml.org 
[lkml]   [2002]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.5.14 IDE CD-ROM PIO mode
Uz.ytkownik Osamu Tomita napisa?:
> I could not use CD-ROM drive [PIO mode] on 2.5.14.
> Error messeges are follows.
>
> May 7 11:05:03 sarah kernel: hdc: cdrom_read_intr: data underrun (4294967292 blocks)
> May 7 11:05:03 sarah kernel: end_request: I/O error, dev 16:00, sector 92
> May 7 11:05:03 sarah kernel: Buffer I/O error on device ide1(22,0), logical block 22
>
> This patch works fine for me. Please check it.

Indeed this makes very much of sense. I will take it.
How did you see it "hawkeye"?

> --- linux/drivers/ide/ide-cd.c.orig Mon May 6 12:38:01 2002
> +++ linux/drivers/ide/ide-cd.c Tue May 7 16:43:51 2002
> @@ -962,7 +962,7 @@
>
> /* First, figure out if we need to bit-bucket
> any of the leading sectors. */
> - nskip = MIN(rq->current_nr_sectors - bio_sectors(rq->bio), sectors_to_transfer);
> + nskip = MIN((int)(rq->current_nr_sectors - bio_sectors(rq->bio)), sectors_to_transfer);
>
> while (nskip > 0) {
> /* We need to throw away a sector. */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.044 / U:3.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site