[U-Boot] [PATCH v3 2/2] dm: serial_pl01x: Add missing private data size
Simon Glass
sjg at chromium.org
Tue Nov 25 05:36:35 CET 2014
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.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v3:
- Add new patch to add missing private data size for serial_pl01x
Changes in v2: None
drivers/serial/serial_pl01x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c
index e1bf496..75eb6bd 100644
--- a/drivers/serial/serial_pl01x.c
+++ b/drivers/serial/serial_pl01x.c
@@ -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
--
2.1.0.rc2.206.gedb03e5
More information about the U-Boot
mailing list