]> git.baikalelectronics.ru Git - uboot.git/commit
clk: fix clk_get_bulk when phandle error
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 17 Apr 2018 09:30:31 +0000 (11:30 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 17 Apr 2018 21:45:08 +0000 (17:45 -0400)
commitf68c9382338e3b6adeae31ee05a3f4922e3d591f
tree824622ee9450245208b4ef056c2267079559b635
parent1916ca1c9883dc44fe0b2b46d1b8937d3fbb3083
clk: fix clk_get_bulk when phandle error

This fixes the Coverity Defect CID 175347 when dev_count_phandle_with_args()
returns a negative value.

Fixes: 01ff34df166f ("clk: Add get/enable/disable/release for a bulk of clocks")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/clk/clk-uclass.c