diff options
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/emif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index b2bb272..9335339 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -1468,7 +1468,7 @@ static struct emif_data *__init_or_module get_device_details( if (pd->timings) { temp = devm_kzalloc(dev, size, GFP_KERNEL); if (temp) { - memcpy(temp, pd->timings, sizeof(*pd->timings)); + memcpy(temp, pd->timings, size); pd->timings = temp; } else { dev_warn(dev, "%s:%d: allocation error\n", __func__, |