patch-2.4.1 linux/drivers/cdrom/cdrom.c
Next file: linux/drivers/char/agp/agpgart_be.c
Previous file: linux/drivers/block/paride/pf.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun Jan 28 13:37:50 2001
- Orig file:
v2.4.0/linux/drivers/cdrom/cdrom.c
- Orig date:
Sat Dec 30 18:16:13 2000
diff -u --recursive --new-file v2.4.0/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
@@ -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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)