summary refs log tree commit diff stats
path: root/hw/timer/cmsdk-apb-timer.c
diff options
context:
space:
mode:
authorAlexChen <alex.chen@huawei.com>2020-11-02 16:52:17 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-11-02 16:52:17 +0000
commit18520fa465a08b81972afd9a25056f102f0180c9 (patch)
treed7c7320c5363487282610d6c364329c062be4ebb /hw/timer/cmsdk-apb-timer.c
parent0080edc45e93324e085e93db89180a2945897c5a (diff)
downloadfocaccia-qemu-18520fa465a08b81972afd9a25056f102f0180c9.tar.gz
focaccia-qemu-18520fa465a08b81972afd9a25056f102f0180c9.zip
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: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 5F9F8D88.9030102@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/cmsdk-apb-timer.c')
0 files changed, 0 insertions, 0 deletions