lkml.org 
[lkml]   [1998]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectcdu31a.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/

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