Julia Lawall 939e379e9e [S390] drivers/s390/char: 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: Martin Schwidefsky <schwidefsky@de.ibm.com>
2010-05-17 10:00:18 +02:00
..
2006-12-08 15:53:52 +01:00
2010-05-17 10:00:15 +02:00
2007-10-17 08:42:52 -07:00
2009-09-11 10:29:49 +02:00
2010-02-09 11:13:56 +01:00
2010-03-24 11:49:53 +01:00
2010-02-09 11:13:56 +01:00
2009-09-11 10:29:49 +02:00
2006-04-28 08:33:48 -07:00
2010-05-17 10:00:15 +02:00
2007-07-17 13:36:19 +02:00