|
@@ -55,13 +55,12 @@ static struct property *dlpar_parse_cc_property(struct cc_workarea *ccwa)
|
|
|
|
|
|
prop->length = ccwa->prop_length;
|
|
|
value = (char *)ccwa + ccwa->prop_offset;
|
|
|
- prop->value = kzalloc(prop->length, GFP_KERNEL);
|
|
|
+ prop->value = kmemdup(value, prop->length, GFP_KERNEL);
|
|
|
if (!prop->value) {
|
|
|
dlpar_free_cc_property(prop);
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
- memcpy(prop->value, value, prop->length);
|
|
|
return prop;
|
|
|
}
|
|
|
|