diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-01-15 22:46:25 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-01-24 11:23:32 -0800 |
commit | 303aef8b84272d73999a3207dd05bbe10ed89dc5 (patch) | |
tree | 1fe00e13f1110eab24421a9bd156d17528076df3 /tools/perf/scripts/python/check-perf-trace.py | |
parent | a64a9c088b75cba5840320d57e0bbfb36739c3b5 (diff) |
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: 4f6be5655dc9 ("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>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions