Re: [PATCH] video: fbdev: omapfb: Add missing error check for clk_get()

From
Helge Deller <deller@gmx.de>
Date
2026-03-10 17:42:43
Also in
dri-devel, linux-omap
Reply to
Chen Ni, 2026-03-10
On 3/10/26 09:56, Chen Ni wrote:
The hwa742_init() function did not check the return value of clk_get().
This could lead to dereferencing an error pointer in subsequent clock
operations, potentially causing a kernel crash.

Fix this by adding a missing error check and ensuring proper clock
resource cleanup on failure and driver removal.

Signed-off-by: Chen Ni <redacted>
---
  drivers/video/fbdev/omap/hwa742.c | 4 ++++
  1 file changed, 4 insertions(+)
applied.
Thanks!
Helge
Thread (2 messages) 2 messages, 2 authors, last reply 2026-03-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help