diff options
| author | Brian Norris <computersforpeace@gmail.com> | 2015-12-16 10:35:03 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:17 +0200 |
| commit | 2e75386d097315a61d23d941d5da082b56fcdc92 (patch) | |
| tree | a44a298823dda34dceac88d38493351d756cd748 /include/linux/timerqueue.h | |
| parent | 7d674b26525676d16773c05cc7bc205fe739dee5 (diff) | |
clk: gpio: handle error codes for of_clk_get_parent_count()
commit 0b2e78865d92e2d70542cb1d4d7af1d4ea0a286d upstream.
We might make bad memory allocations if we get (e.g.) -ENOSYS from
of_clk_get_parent_count().
Noticed by Coverity.
Fixes: f66541ba02d5 ("clk: gpio: Get parent clk names in of_gpio_clk_setup()")
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Jyri Sarha <jsarha@ti.com>
Cc: Sergej Sawazki <ce3a@gmx.de>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
