Skip to content
Snippets Groups Projects
Commit 18520fa4 authored by Alex Chen's avatar Alex Chen Committed by Peter Maydell
Browse files

hw/display/exynos4210_fimd: Fix potential NULL pointer dereference


In exynos4210_fimd_update(), the pointer s is dereferinced before
being check if it is valid, which may lead to NULL pointer dereference.
So move the assignment to global_width after checking that the s is valid.

Reported-by: default avatarEuler Robot <euler.robot@huawei.com>
Signed-off-by: default avatarAlex Chen <alex.chen@huawei.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 5F9F8D88.9030102@huawei.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 0080edc4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment