]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: clk-apple-nco: Add NULL check in applnco_probe
authorCharles Han <hanchunchao@inspur.com>
Thu, 14 Nov 2024 07:28:20 +0000 (15:28 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 14 Nov 2024 20:31:03 +0000 (12:31 -0800)
commit969c765e2b508cca9099d246c010a1e48dcfd089
treea9da632c5d1a4f2fce2aae8fb7b5448bb0047d54
parentdedceb2be8b4342c35967d5d47223631ef5d2eab
clk: clk-apple-nco: Add NULL check in applnco_probe

Add NULL check in applnco_probe, to handle kernel NULL pointer
dereference error.

Fixes: 6641057d5dba ("clk: clk-apple-nco: Add driver for Apple NCO")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Link: https://lore.kernel.org/r/20241114072820.3071-1-hanchunchao@inspur.com
Reviewed-by: Martin PoviĊĦer <povik+lin@cutebit.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-apple-nco.c