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/