Skip to content

Commit 674440b

Browse files
author
Ye Li
committed
LFU-753-3 video: imx93-parallel-disp-fmt: Fix uninitialized variable
The bus_format variable is not initialized, in case the fmt property is not set, it will cause problem to following codes. Fix coverity issue 37938122. Signed-off-by: Ye Li <[email protected]> Reviewed-by: Peng Fan <[email protected]>
1 parent 83652aa commit 674440b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/nxp/imx/imx93-parallel-disp-fmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int imx93_pdf_probe(struct udevice *dev)
8181
{
8282
struct imx93_pdf_priv *priv = dev_get_priv(dev);
8383
const char *fmt;
84-
u32 bus_format;
84+
u32 bus_format = 0;
8585
int ret;
8686

8787
priv->addr = (void __iomem *)dev_read_addr(dev_get_parent(dev));

0 commit comments

Comments
 (0)