diff options
author | Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com> | 2013-03-16 07:16:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 21:18:12 +0100 |
commit | 36caf3e525b24556f649aecd097cad73bde6f035 (patch) | |
tree | 64d405f22b9f04793b8f15d34130ca6a1721a469 /drivers/memory/emif.c | |
parent | memory: emif: use restart if power_off not present when out of spec (diff) | |
download | linux-36caf3e525b24556f649aecd097cad73bde6f035.tar.xz linux-36caf3e525b24556f649aecd097cad73bde6f035.zip |
memory: emif: Fix the incorrect 'size' parameter in memcpy
The issue was that only the first timings table was added to the
emif platform data at the emif driver registration. All other
timings tables was filled with zeros. Now all emif timings table
are added to the platform data.
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/memory/emif.c')
-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 b2bb27261c73..9335339ebfdf 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__, |