[U-Boot] [PATCH 08/11] dm: video: Don't do anything in alloc_fb() when plat->size is zero
Simon Glass
sjg at chromium.org
Wed Oct 12 02:06:44 CEST 2016
On 9 October 2016 at 05:14, Bin Meng <bmeng.cn at gmail.com> 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 <bmeng.cn at gmail.com>
> ---
>
> drivers/video/video-uclass.c | 3 +++
> 1 file changed, 3 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list