1
linux/drivers/media/video/zoran
Julia Lawall 7a12f4b50d V4L/DVB: drivers/media/video/zoran: Use kmemdup
Use kmemdup when some other buffer is immediately copied into the
allocated region.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression from,to,size,flag;
statement S;
@@

-  to = \(kmalloc\|kzalloc\)(size,flag);
+  to = kmemdup(from,size,flag);
   if (to==NULL || ...) S
-  memcpy(to, from, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-08-02 15:04:04 -03:00
..
Kconfig
Makefile
videocodec.c V4L/DVB: drivers/media/video/zoran: Use kmemdup 2010-08-02 15:04:04 -03:00
videocodec.h
zoran_card.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
zoran_card.h
zoran_device.c
zoran_device.h
zoran_driver.c V4L/DVB: zoran: remove V4L1 videodev.h include 2010-05-18 00:52:41 -03:00
zoran_procfs.c
zoran_procfs.h
zoran.h V4L/DVB: zoran: remove V4L1 videodev.h include 2010-05-18 00:52:41 -03:00
zr36016.c
zr36016.h
zr36050.c
zr36050.h
zr36057.h
zr36060.c
zr36060.h