patch-1.3.89 linux/drivers/sound/soundcard.c
Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/scsi/sd.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Apr 14 10:56:06 1996
- Orig file:
v1.3.88/linux/drivers/sound/soundcard.c
- Orig date:
Fri Apr 12 15:52:03 1996
diff -u --recursive --new-file v1.3.88/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -170,13 +170,13 @@
len = _IOC_SIZE (cmd);
- if (_IOC_DIR (cmd) == _IOC_WRITE)
+ if (_IOC_DIR (cmd) & _IOC_WRITE)
{
if ((err = verify_area (VERIFY_READ, (void *) arg, len)) < 0)
return err;
}
- if (_IOC_DIR (cmd) == _IOC_READ)
+ if (_IOC_DIR (cmd) & _IOC_READ)
{
if ((err = verify_area (VERIFY_WRITE, (void *) arg, len)) < 0)
return err;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this