]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:42 +0000 (13:53 +0100)
commit066c14619e8379c1bafbbf8196fd38eac303472b
tree6c9427f0dc6a2bc2c5473954528a6922e0e3ba79
parent542bd62b7a7f37182c9ef192c2bd25d118c144e4
clk: clk-apple-nco: Add NULL check in applnco_probe

[ Upstream commit 969c765e2b508cca9099d246c010a1e48dcfd089 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-apple-nco.c