alistair23-linux/drivers/s390
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
..
block [S390] dasd: remove uid from devmap 2010-05-17 10:00:16 +02:00
char [S390] drivers/s390/char: Use kmemdup 2010-05-17 10:00:18 +02:00
cio [S390] qdio: remove API wrappers 2010-05-17 10:00:17 +02:00
crypto [S390] avoid default_llseek in s390 drivers 2010-05-17 10:00:16 +02:00
kvm 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
net [S390] qdio: remove API wrappers 2010-05-17 10:00:17 +02:00
scsi [S390] avoid default_llseek in s390 drivers 2010-05-17 10:00:16 +02:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00