Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1829301imm; Mon, 3 Sep 2018 10:30:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbVc6YPQZ71GnNPGG7qdznmXQGo7w4pisMbdy2tQAWhlecxXpQcR+UqTRdxcoeN0tfO6V/ X-Received: by 2002:a17:902:8c82:: with SMTP id t2-v6mr15307171plo.241.1535995829092; Mon, 03 Sep 2018 10:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995829; cv=none; d=google.com; s=arc-20160816; b=Vh9A/DFLwozBCWn3Ct5Q3E8tMBM600CPRq9sNVvMHB/3/mx5DhBwfuNuZLdWYpaYKE eSPrdYQWFUHwPmbLWzf4poBo0CsWGQABL3KLwLmLYXzTFQ5Ya2yYqoaNFC4XT8ENSVg5 MTKehBOM/7oDe9AKrMvmxuMRaWTycNPGYC01sf8BoMtjRAe7msxfZNhEeXiE311e/12w +mkVm+Dl7YhGj7ui6pniQUnfxsJ8SyVNboRJviyhuKovSnxXavNUM/AOPcyNm6XoiBpl H6GfDspZrlC9lRrZG1fdVa0XHYzvIBc+I3goK+2A1uBXEowZPzh0PkRIiPLckbWfqedQ DkAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YdMwzl7AJyFoNcf4x/i0w+hHmN14Q0CXFv1GH8f9Vck=; b=QNitNxehJ9nSaRKRHmDN5p1W7uiM7pUS4sCOcW6eh/hg5b7iJdiepIWEYSTI0sjI8z GYtq/SrVoKW7+zZf0iFUHAxj0Fi1P5aR5mZqORURZLXKd3Cg5ck4FNVu2fhYb+wLLa22 yDlfzQG6YxYIiEDtWKytmy60dx/rOFCbxQPZIdUrlKEBSRTqziTm9TE4k6zqNr+2cHGj t3NoL3s/Wd3XPATPbhgrYkgzceY25nODw1oCIMjKU7Tz9vG9NKCGO1YUkX6QvlX6j/3a 99oRqsHewy5mFwXcqOl8ZyBUXlEvyPBQR9+/VAaqC/3qJcrHJQk+SG1s4s4tZ7wvLo6f 1QkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a84-v6si19308449pfj.300.2018.09.03.10.30.13; Mon, 03 Sep 2018 10:30:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731114AbeICVtH (ORCPT + 99 others); Mon, 3 Sep 2018 17:49:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46366 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728175AbeICVtG (ORCPT ); Mon, 3 Sep 2018 17:49:06 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 10770D01; Mon, 3 Sep 2018 17:27:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , "Rafael J. Wysocki" Subject: [PATCH 4.14 159/165] PM / clk: signedness bug in of_pm_clk_add_clks() Date: Mon, 3 Sep 2018 18:57:25 +0200 Message-Id: <20180903165705.064284713@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter 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+ # 4.6+ Signed-off-by: Dan Carpenter Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/base/power/clock_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/base/power/clock_ops.c +++ b/drivers/base/power/clock_ops.c @@ -185,7 +185,7 @@ EXPORT_SYMBOL_GPL(of_pm_clk_add_clk); int of_pm_clk_add_clks(struct device *dev) { struct clk **clks; - unsigned int i, count; + int i, count; int ret; if (!dev || !dev->of_node)