aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2019-01-15 19:46:25 +0000
committerStephen Boyd <[email protected]>2019-01-24 19:23:32 +0000
commit303aef8b84272d73999a3207dd05bbe10ed89dc5 (patch)
tree1fe00e13f1110eab24421a9bd156d17528076df3 /drivers/fpga/fpga-mgr.c
parentclk: imx: Fix fractional clock set rate computation (diff)
downloadkernel-303aef8b84272d73999a3207dd05bbe10ed89dc5.tar.gz
kernel-303aef8b84272d73999a3207dd05bbe10ed89dc5.zip
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 <[email protected]> Acked-by: Tero Kristo <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions