Julia Lawall 2b3c543a83 V4L/DVB: drivers/media/video/tlg2300: 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:03:36 -03:00
..
2010-05-19 12:57:20 -03:00
2010-06-01 01:23:21 -03:00
2010-05-18 00:52:42 -03:00
2010-06-01 01:19:04 -03:00
2010-06-01 01:19:41 -03:00
2010-08-02 15:00:58 -03:00
2010-05-19 12:59:14 -03:00
2010-05-18 00:50:24 -03:00
2010-05-19 12:57:09 -03:00