aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorFrank Oltmanns <[email protected]>2024-06-23 10:45:58 +0200
committerChen-Yu Tsai <[email protected]>2024-06-30 23:12:44 +0800
commitea977d742507e534d9fe4f4d74256f6b7f589338 (patch)
treed75776cef145a746d03b009edcd1c0c76479d055 /drivers/fpga/fpga-bridge.c
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff)
clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
In order to set the rate range of a hw sunxi_ccu_probe calls hw_to_ccu_common() assuming all entries in desc->ccu_clks are contained in a ccu_common struct. This assumption is incorrect and, in consequence, causes invalid pointer de-references. Remove the faulty call. Instead, add one more loop that iterates over the ccu_clks and sets the rate range, if required. Fixes: b914ec33b391 ("clk: sunxi-ng: common: Support minimum and maximum rate") Reported-by: Robert J. Pafford <[email protected]> Closes: https://lore.kernel.org/lkml/DM6PR01MB58047C810DDD5D0AE397CADFF7C22@DM6PR01MB5804.prod.exchangelabs.com/ Cc: [email protected] Signed-off-by: Frank Oltmanns <[email protected]> Tested-by: Robert J. Pafford <[email protected]> Link: https://lore.kernel.org/r/20240623-sunxi-ng_fix_common_probe-v1-1-7c97e32824a1@oltmanns.dev Signed-off-by: Chen-Yu Tsai <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions