Skip to content

Commit 9d5651a

Browse files
AnnYugawahdeller
authored andcommitted
fbdev: ep93xx-fb: fix return value check in ep93xxfb_probe
function clk_prepare_enable may fail in ep93xxfb_probe, therefore, add a return value check to clk_prepare_enable and handle the error. Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 4e88761 commit 9d5651a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/video/fbdev/ep93xx-fb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ static int ep93xxfb_probe(struct platform_device *pdev)
548548
}
549549

550550
ep93xxfb_set_par(info);
551-
clk_prepare_enable(fbi->clk);
551+
err = clk_prepare_enable(fbi->clk);
552+
if (err)
553+
goto failed_check;
552554

553555
err = register_framebuffer(info);
554556
if (err)

0 commit comments

Comments
 (0)