patch-2.4.21 linux-2.4.21/drivers/media/video/zr36120.c
Next file: linux-2.4.21/drivers/message/fusion/Config.in
Previous file: linux-2.4.21/drivers/media/video/zoran_procfs.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
2003-06-13 07:51:34.000000000 -0700
- Orig file:
linux-2.4.20/drivers/media/video/zr36120.c
- Orig date:
2002-02-25 11:37:58.000000000 -0800
diff -urN linux-2.4.20/drivers/media/video/zr36120.c linux-2.4.21/drivers/media/video/zr36120.c
@@ -1700,12 +1700,12 @@
for (x=0; optr+1<eptr && x<-done->w; x++)
{
unsigned char a = iptr[x*2];
- *optr++ = a;
- *optr++ = a;
+ __put_user(a, optr++);
+ __put_user(a, optr++);
}
/* and clear the rest of the line */
for (x*=2; optr<eptr && x<done->bpl; x++)
- *optr++ = 0;
+ __put_user(0, optr++);
/* next line */
iptr += done->bpl;
}
@@ -1722,10 +1722,10 @@
{
/* copy to doubled data to userland */
for (x=0; optr<eptr && x<-done->w; x++)
- *optr++ = iptr[x*2];
+ __put_user(iptr[x*2], optr++);
/* and clear the rest of the line */
for (;optr<eptr && x<done->bpl; x++)
- *optr++ = 0;
+ __put_user(0, optr++);
/* next line */
iptr += done->bpl;
}
@@ -1734,7 +1734,7 @@
/* API compliance:
* place the framenumber (half fieldnr) in the last long
*/
- ((ulong*)eptr)[-1] = done->fieldnr/2;
+ __put_user(done->fieldnr/2, ((ulong*)eptr)-1);
}
/* keep the engine running */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)