linux/arch/powerpc/platforms/iseries
Julia Lawall 307a54cc80 powerpc/iseries: 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:36 +10:00
..
call_hpt.h
call_pci.h
call_sm.h
dt.c powerpc/iseries: Remove compiler version dependent hack 2009-10-27 16:42:39 +11:00
exception.h powerpc: Use names rather than numbers for SPRGs (v2) 2009-08-20 10:12:27 +10:00
exception.S powerpc: Avoid bad relocations in iSeries code 2010-05-21 17:31:08 +10:00
htab.c powerpc: Replace old style lock initializer 2009-11-24 14:31:28 +11:00
hvcall.S
hvlog.c
hvlpconfig.c
iommu.c 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
ipl_parms.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
irq.c powerpc: Remove whitespace in irq chip name fields 2010-02-17 14:02:48 +11:00
irq.h
it_exp_vpd_panel.h
it_lp_naca.h
Kconfig viocd: needs to depend on BLOCK 2009-05-12 13:28:23 +02:00
ksyms.c
lpardata.c [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
lpevents.c powerpc: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
main_store.h
Makefile powerpc/iseries: Remove compiler version dependent hack 2009-10-27 16:42:39 +11:00
mf.c 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
misc.S
naca.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
pci.c powerpc/iseries: Fix possible null pointer dereference in iSeries_pcibios_fixup_resources 2010-07-08 18:11:43 +10:00
pci.h
proc.c powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
processor_vpd.h
release_data.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
setup.c powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
setup.h
smp.c powerpc/cpumask: Convert iseries SMP code to new cpumask API 2010-05-06 17:16:15 +10:00
smp.h
spcomm_area.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
vio.c powerpc/iseries: Use kstrdup 2010-07-09 11:28:36 +10:00
viopath.c 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
vpd_areas.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00