kernel-fxtec-pro1x/arch/powerpc/platforms
Julia Lawall 7405217317 powerpc/pseries: Use kstrdup
Use kstrdup when the goal of an allocation is copy a string into the
allocated region.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

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

-  to = kmalloc(strlen(from) + 1,flag);
+  to = kstrdup(from, flag);
   ... when != \(from = E1 \| to = E1 \)
   if (to==NULL || ...) S
   ... when != \(from = E2 \| to = E2 \)
-  strcpy(to, from);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-07-09 11:28:37 +10:00
..
8xx 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
40x powerpc/40x: Add support for the ESTeem 195E (PPC405EP) SBC 2009-08-31 09:15:51 -04:00
44x powerpc/44x: Add basic ICON PPC440SPe board support 2010-05-12 07:50:53 -04:00
52xx powerpc: Clean up obsolete code relating to decrementer and timebase 2010-07-09 11:26:16 +10:00
82xx of: Remove duplicate fields from of_platform_driver 2010-05-22 00:10:40 -06:00
83xx Merge remote branch 'origin' into secretlab/next-devicetree 2010-05-22 00:36:56 -06:00
85xx powerpc/85xx: Add P1021MDS board support 2010-05-24 21:29:25 -05:00
86xx powerpc/8610: add probing for individual DMA channels, not just DMA controllers 2010-05-17 10:55:33 -05:00
512x powerpc/mpc5121: move PSC FIFO memory init to platform code 2010-05-25 00:23:16 -06:00
amigaone kbuild: move utsrelease.h to include/generated 2009-12-12 13:08:15 +01:00
cell powerpc/cell: Fix integer constant warning 2010-06-02 17:50:37 +10:00
chrp 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
embedded6xx Powerpc: wii: Fix typo in comment 2010-04-26 11:53:54 +02:00
iseries powerpc/iseries: Use kstrdup 2010-07-09 11:28:36 +10:00
maple 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
pasemi Merge remote branch 'origin' into secretlab/next-devicetree 2010-05-22 00:36:56 -06:00
powermac powerpc: Clean up obsolete code relating to decrementer and timebase 2010-07-09 11:26:16 +10:00
prep
ps3 of: eliminate of_device->node and dev_archdata->{of,prom}_node 2010-05-18 16:10:45 -06:00
pseries powerpc/pseries: Use kstrdup 2010-07-09 11:28:37 +10:00
fsl_uli1575.c PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs 2010-02-23 09:43:31 -08:00
Kconfig powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00
Kconfig.cputype powerpc/47x: Base ppc476 support 2010-05-05 09:11:10 -04:00
Makefile powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00