Skip to content
Commit 48bbbfe9 authored by sudarsan N's avatar sudarsan N Committed by Fabio Baltieri
Browse files

drivers: video: fix NULL dereference in mipid02_get_fmt



Category: Null pointer dereference (CWE-476)

Corrects the logic that validates the result of mipid04_get_format_desc().
Previously, the check was inverted, which could lead to a NULL pointer
dereference when accessing desc->pixelformat.

Fixes Coverity CID: 525183

Signed-off-by: default avatarsudarsan N <sudarsansamy2002@gmail.com>
parent efee13e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment