[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V2] hw/display/exynos4210_fimd: Fix potential NULL pointer de
From: |
AlexChen |
Subject: |
Re: [PATCH V2] hw/display/exynos4210_fimd: Fix potential NULL pointer dereference |
Date: |
Mon, 2 Nov 2020 18:10:34 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
On 2020/11/2 17:16, Philippe Mathieu-Daudé wrote:
> On 11/2/20 5:39 AM, AlexChen wrote:
>> In exynos4210_fimd_update(), the pointer s is dereferinced before
>
> Typo dereferinced -> dereferenced.
>
>> 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.
>
> Easier to read "after checking 's' is valid."
>
>>
>> Reported-by: Euler Robot <euler.robot@huawei.com>
>> Signed-off-by: Alex Chen <alex.chen@huawei.com>
>> ---
>> hw/display/exynos4210_fimd.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
Thanks for your review, I will fix it in my patch V3.
Thanks,
Alex