reset: fix reset_get_bulk when phandle error
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 17 Apr 2018 09:30:22 +0000 (11:30 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 17 Apr 2018 21:45:08 +0000 (17:45 -0400)
commit895a82ce90278130828b26c230da99331a33e729
treefc4ba4ae48554e4f510461ba3fe0139fb8ee286f
parent34b3722e381c0146b4aa7fea3a5243c588b8ed2f
reset: fix reset_get_bulk when phandle error

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

Fixes: 0c28233903b5 ("reset: Add get/assert/deassert/release for bulk of reset signals")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/reset/reset-uclass.c