Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /drivers/cdrom/cdrom.c

Filename:/drivers/cdrom/cdrom.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.1-pre12  2.4.0-prerelease  2.4.0-test10  2.4.0-test9  2.4.0-test8  2.4.0-test3 
(Following) 2.4.1-ac9  2.4.1-ac10  2.4.1-ac11  2.4.1-ac12  2.4.1-ac13  2.4.1-ac14 

Location
[  2.4.1
  [  drivers
    [  cdrom
       o  cdrom.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
--- v2.4.0/linux/drivers/cdrom/cdrom.c   Sat Dec 30 18:16:13 2000
+++ linux/drivers/cdrom/cdrom.c   Sun Jan 28 13:37:50 2001
@@ -295,11 +295,11 @@
 
 /* These are used to simplify getting data in from and back to user land */
 #define IOCTL_IN(arg, type, in)               \
-   if (copy_from_user(&in, (type *) arg, sizeof in))   \
+   if (copy_from_user(&(in), (type *) (arg), sizeof (in)))   \
       return -EFAULT;
 
 #define IOCTL_OUT(arg, type, out) \
-   if (copy_to_user((type *) arg, &out, sizeof out))   \
+   if (copy_to_user((type *) (arg), &(out), sizeof (out)))   \
       return -EFAULT;
 
 /* The (cdo->capability & ~cdi->mask & CDC_XXX) construct was used in


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.