mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>