[PATCH] clk: bcm: rpi: Fix potential NULL pointer dereference

Florian Fainelli florian.fainelli at broadcom.com
Mon Feb 10 20:08:01 PST 2025



On 2/10/2025 4:09 PM, Chenyuan Yang wrote:
> The `init.name` could be NULL. Add missing check in the
> raspberrypi_clk_register().
> This is similar to commit 3027e7b15b02
> ("ice: Fix some null pointer dereference issues in ice_ptp.c").
> Besides, bcm2835_register_pll_divider() under the same directory also
> has a very similar check.
> 
> Signed-off-by: Chenyuan Yang <chenyuan0y at gmail.com>

Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
-- 
Florian




More information about the linux-arm-kernel mailing list