diff options
author | AlexChen <alex.chen@huawei.com> | 2020-11-02 16:52:17 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-11-02 16:52:17 +0000 |
commit | 0080edc45e93324e085e93db89180a2945897c5a (patch) | |
tree | a8826d31727f358bc2582fb6fe6adb944989c456 /hw/display/exynos4210_fimd.c | |
parent | 3f0b59070c89f2261ff5961980ff5203b0c6bea9 (diff) | |
download | qemu-0080edc45e93324e085e93db89180a2945897c5a.zip |
hw/display/omap_lcdc: Fix potential NULL pointer dereference
In omap_lcd_interrupts(), the pointer omap_lcd is dereferinced before
being check if it is valid, which may lead to NULL pointer dereference.
So move the assignment to surface after checking that the omap_lcd is valid
and move surface_bits_per_pixel(surface) to after the surface assignment.
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: AlexChen <alex.chen@huawei.com>
Message-id: 5F9CDB8A.9000001@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/display/exynos4210_fimd.c')
0 files changed, 0 insertions, 0 deletions