]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: serial_pl01x: Add missing private data size
authorSimon Glass <sjg@chromium.org>
Tue, 25 Nov 2014 04:36:35 +0000 (21:36 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 11 Dec 2014 20:18:41 +0000 (13:18 -0700)
The private data size is missing from the driver, so we store it at 0,
which causes problems when something overwrites memory at 0.

Fix this.

Change-Id: I6f551ee905b0064ae8343e41e46450c37c8c8c1a
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
drivers/serial/serial_pl01x.c

index e1bf4965f92123ce0605cbc93d02f0a1d56da1f2..75eb6bd729e1614033f1bd110fb602358cfb5e46 100644 (file)
@@ -348,6 +348,7 @@ U_BOOT_DRIVER(serial_pl01x) = {
        .probe = pl01x_serial_probe,
        .ops    = &pl01x_serial_ops,
        .flags = DM_FLAG_PRE_RELOC,
+       .priv_auto_alloc_size = sizeof(struct pl01x_priv),
 };
 
 #endif