patch-2.1.77 linux/drivers/char/bttv.c

Next file: linux/drivers/char/bw-qcam.c
Previous file: linux/drivers/char/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.76/linux/drivers/char/bttv.c linux/drivers/char/bttv.c
@@ -1270,7 +1270,7 @@
 			v.flags&=~(VIDEO_AUDIO_MUTE|VIDEO_AUDIO_MUTABLE);
 			v.flags|=VIDEO_AUDIO_MUTABLE;
 			strcpy(v.name,"TV");
-			if(copy_to_user(&v,arg,sizeof(v)))
+			if(copy_to_user(arg,&v,sizeof(v)))
 				return -EFAULT;
 			return 0;
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov