On Mon, 2 Nov 2020 at 10:13, AlexChen <alex.c...@huawei.com> wrote: > > In exynos4210_fimd_update(), the pointer 's' is dereferenced before > checking it is valid, which may lead to NULL pointer dereference. > So move the assignment to global_width after checking 's' is valid. > > Reported-by: Euler Robot <euler.ro...@huawei.com> > Signed-off-by: Alex Chen <alex.c...@huawei.com> > Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > hw/display/exynos4210_fimd.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)
Applied to target-arm.next, thanks. -- PMM