patch-2.4.0-test8 linux/drivers/sound/ac97_codec.c
Next file: linux/drivers/sound/cmpci.c
Previous file: linux/drivers/sgi/char/rrm.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Tue Aug 29 14:09:15 2000
- Orig file:
v2.4.0-test7/linux/drivers/sound/ac97_codec.c
- Orig date:
Fri Jun 23 21:55:10 2000
diff -u --recursive --new-file v2.4.0-test7/linux/drivers/sound/ac97_codec.c linux/drivers/sound/ac97_codec.c
@@ -419,7 +419,8 @@
if (_IOC_DIR(cmd) == (_IOC_WRITE|_IOC_READ)) {
codec->modcnt++;
- get_user_ret(val, (int *)arg, -EFAULT);
+ if (get_user(val, (int *)arg))
+ return -EFAULT;
switch (_IOC_NR(cmd)) {
case SOUND_MIXER_RECSRC: /* Arg contains a bit for each recording source */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)