Messages in this thread Patch in this message | | | Date | Tue, 13 Oct 1998 09:17:33 -0400 (EDT) | From | Robert Boermans <> | Subject | cdu31a.c |
| |
I need this small patch to be able to read raw audio from my cdrom drive without it it tries to use the value in ra before the copy to ra, which can't be right.
Robert.
--- cdu31a.c~ Thu Sep 17 18:41:35 1998 +++ cdu31a.c Wed Sep 23 19:21:27 1998 @@ -3022,7 +3022,9 @@ { return -EIO; } - + + copy_from_user(&ra, (char *) arg, sizeof(ra)); + if (ra.nframes == 0) { return 0; @@ -3031,7 +3033,6 @@ i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); if(i<0) return i; - copy_from_user(&ra, (char *) arg, sizeof(ra)); if (ra.addr_format == CDROM_LBA) {
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |