[PATCH 0/2] Fix NULL dereference in clk_composite_set_rate()
Igor Prusov
ivprusov at salutedevices.com
Wed Dec 6 00:23:32 CET 2023
On sandbox it's possible to trigger NULL dereference when setting rate
of a composite clock. It happens because sandbox composite divider does
not implement set_rate() operation. This series adds NULL check and a
test cases for clk_set_rate().
Igor Prusov (2):
clk: Check that composite clock's div has set_rate()
dm: test: clk: Add test for ccf clk_set_rate()
drivers/clk/clk-composite.c | 2 +-
test/dm/clk_ccf.c | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
--
2.34.1
More information about the U-Boot
mailing list