powerpc/pseries: Use kmemdup

While looking at some code paths I came across this code that zeros
memory then copies over the entire length.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by Nishanth Aravamudan and committed by Benjamin Herrenschmidt e72ed6b5 45848e0f

+1 -2
+1 -2
arch/powerpc/platforms/pseries/dlpar.c
··· 55 55 56 56 prop->length = ccwa->prop_length; 57 57 value = (char *)ccwa + ccwa->prop_offset; 58 - prop->value = kzalloc(prop->length, GFP_KERNEL); 58 + prop->value = kmemdup(value, prop->length, GFP_KERNEL); 59 59 if (!prop->value) { 60 60 dlpar_free_cc_property(prop); 61 61 return NULL; 62 62 } 63 63 64 - memcpy(prop->value, value, prop->length); 65 64 return prop; 66 65 } 67 66