kernel-ark/drivers/media
Julia Lawall feda79bffc V4L/DVB: drivers/media/video/gspca: 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:01:43 -03:00
..
common V4L/DVB: tda18271: fix error detection during initialization of first instance 2010-08-02 14:48:43 -03:00
dvb V4L/DVB: drivers/media/dvb/dvb-usb/dib0700: CodingStyle fixes 2010-08-02 15:01:33 -03:00
IR V4L/DVB: IR/mceusb: add tx callback functions and wire up 2010-08-02 14:58:58 -03:00
radio i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
video V4L/DVB: drivers/media/video/gspca: Use kmemdup 2010-08-02 15:01:43 -03:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00