On 9 October 2016 at 05:14, Bin Meng <[email protected]> wrote: > With DM VESA driver on x86 boards, plat->base/size/align are all > zeroes and starting address passed to alloc_fb() happens to be 1MB > aligned, so this routine does not trigger any issue. On QEMU with > U-Boot as coreboot payload, the starting address is within 1MB > range (eg: 0x7fb0000), thus causes failure in video_post_bind(). > > Actually if plat->size is zero, it makes no sense to do anything > in this routine. Add such check there. > > Signed-off-by: Bin Meng <[email protected]> > --- > > drivers/video/video-uclass.c | 3 +++ > 1 file changed, 3 insertions(+)
Reviewed-by: Simon Glass <[email protected]> _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

