
25 Nov
2014
25 Nov
'14
5:36 a.m.
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@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