diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2026-03-10 16:56:25 +0800 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-03-10 18:40:21 +0100 |
| commit | d3da7f00e21c2ff274b991167c69e96501746f28 (patch) | |
| tree | 61f5d470a7ad1827cc801bd421edd93e086d67c3 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | f044788088ef55e9855b17b7984ffe522c40c093 (diff) | |
fbdev: omapfb: Add missing error check for clk_get()
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 <nichen@iscas.ac.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
