Files
linux/drivers/clk/ti
Dan Carpenter cf872189c8 clk: ti: Fix error handling in ti_clk_parse_divider_data()
[ Upstream commit 303aef8b84 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-13 14:02:27 -07:00
..
2018-06-12 16:19:22 -07:00
2018-11-27 16:13:01 +01:00
2018-06-12 16:19:22 -07:00
2017-08-23 15:53:25 -07:00
2016-03-01 16:21:25 -08:00