PM / clk: signedness bug in of_pm_clk_add_clks()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Aug 2018 13:59:25 +0000 (16:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:42 +0000 (09:26 +0200)
commitd2a97eba0c4ee31435a4174ffa3818e26d8ee9ac
tree4c4fef9125a0212755e231a9c2fab61c98496b25
parent2adc2541a5c4fc431350192a32198f5f90c2fe17
PM / clk: signedness bug in of_pm_clk_add_clks()

commit 5e2e2f9f76e157063a656351728703cb02b068f1 upstream.

"count" needs to be signed for the error handling to work.  I made "i"
signed as well so they match.

Fixes: 02113ba93ea4 (PM / clk: Add support for obtaining clocks from device-tree)
Cc: 4.6+ <stable@vger.kernel.org> # 4.6+
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/clock_ops.c