linux_dsm_epyc7002/drivers/clk/ti
Dan Carpenter 303aef8b84 clk: ti: Fix error handling in ti_clk_parse_divider_data()
The ti_clk_parse_divider_data() function is only called from
_get_div_table_from_setup().  That function doesn't look at the return
value but instead looks at the "*table" pointer.  In this case, if the
kcalloc() fails then *table is NULL (which means success).  It should
instead be an error pointer.

The ti_clk_parse_divider_data() function has two callers.  One checks
for errors and the other doesn't.  I have fixed it so now both handle
errors.

Fixes: 4f6be5655d ("clk: ti: divider: add driver internal API for parsing divider data")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-01-24 11:23:32 -08:00
..
adpll.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
apll.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
autoidle.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clk-2xxx.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
clk-3xxx.c clk: ti: omap3: cleanup unnecessary clock aliases 2017-12-01 15:17:17 +02:00
clk-7xx-compat.c clk: ti: dra7xx: rename existing clkctrl data as compat data 2018-10-03 15:02:27 +03:00
clk-7xx.c clk: ti: dra7: add new clkctrl data 2018-10-03 15:02:27 +03:00
clk-33xx-compat.c clk: ti: am33xx: rename existing clkctrl data as compat data 2018-10-03 15:02:26 +03:00
clk-33xx.c clk: ti: am33xx: add new clkctrl data for am33xx 2018-10-03 15:02:26 +03:00
clk-43xx-compat.c clk: ti: am43xx: rename existing clkctrl data as compat data 2018-10-03 15:02:26 +03:00
clk-43xx.c clk: ti: am43xx: add new clkctrl data for am43xx 2018-10-03 15:02:27 +03:00
clk-44xx.c clk: ti: omap4: clkctrl data fixes for opt-clocks 2017-12-01 15:18:08 +02:00
clk-54xx.c clk: ti: omap5: add clkctrl clock data 2017-12-01 15:17:18 +02:00
clk-814x.c clk: ti: dm814: add clkctrl clock data 2017-12-01 15:18:01 +02:00
clk-816x.c clk: ti: dm816: add clkctrl clock data 2017-12-01 15:18:06 +02:00
clk-dra7-atl.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
clk.c This time it looks like a quieter release cycle in the clk tree. I guess that's 2018-10-31 11:08:30 -07:00
clkctrl.c clk: Use of_node_name_eq for node name comparisons 2018-12-14 13:52:41 -08:00
clkt_dflt.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clkt_dpll.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clkt_iclk.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clock.h clk: ti: Add functions to save/restore clk context 2018-10-03 15:29:19 +03:00
clockdomain.c clk: Convert to using %pOF instead of full_name 2017-07-21 15:49:54 -07:00
composite.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
divider.c clk: ti: Fix error handling in ti_clk_parse_divider_data() 2019-01-24 11:23:32 -08:00
dpll3xxx.c clk: ti: Add functions to save/restore clk context 2018-10-03 15:29:19 +03:00
dpll44xx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
dpll.c clk: Use of_node_name_eq for node name comparisons 2018-12-14 13:52:41 -08:00
fapll.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
fixed-factor.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
gate.c Merge branch 'clk-ti' into clk-next 2018-10-18 15:41:21 -07:00
interface.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
Kconfig clk: ti: Add support for dm814x ADPLL 2016-03-01 16:21:25 -08:00
Makefile clk: ti: dra7xx: rename existing clkctrl data as compat data 2018-10-03 15:02:27 +03:00
mux.c Merge branch 'clk-ti' into clk-next 2018-10-18 15:41:21 -07:00