patch-2.4.19 linux-2.4.19/drivers/sound/msnd_pinnacle.c

Next file: linux-2.4.19/drivers/sound/nec_vrc5477.c
Previous file: linux-2.4.19/drivers/sound/mpu401.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/sound/msnd_pinnacle.c linux-2.4.19/drivers/sound/msnd_pinnacle.c
@@ -564,11 +564,11 @@
 		mixer_info info;
 		set_mixer_info();
 		info.modify_counter = dev.mixer_mod_count;
-		return copy_to_user((void *)arg, &info, sizeof(info));
+		return copy_to_user((void *)arg, &info, sizeof(info))?-EFAULT:0;
 	} else if (cmd == SOUND_OLD_MIXER_INFO) {
 		_old_mixer_info info;
 		set_mixer_info();
-		return copy_to_user((void *)arg, &info, sizeof(info));
+		return copy_to_user((void *)arg, &info, sizeof(info))?-EFAULT:0;
 	} else if (cmd == SOUND_MIXER_PRIVATE1) {
 		dev.nresets = 0;
 		dsp_full_reset();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)