From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753798AbcD0Vdp (ORCPT ); Wed, 27 Apr 2016 17:33:45 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:44467 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752654AbcD0Vdo (ORCPT ); Wed, 27 Apr 2016 17:33:44 -0400 From: "Rafael J. Wysocki" To: Colin King Cc: "Rafael J . Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / clk: ensure we don't allocate a -ve size of count clks Date: Wed, 27 Apr 2016 23:36:46 +0200 Message-ID: <1758389.523N68aZaC@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1460811003-31806-1-git-send-email-colin.king@canonical.com> References: <1460811003-31806-1-git-send-email-colin.king@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, April 16, 2016 01:50:03 PM Colin King wrote: > From: Colin Ian King > > It is entirely possible for of_count_phandle_wit_args to > return a -ve error return value so we need to check for this > otherwise we end up allocating a negative number of clk objects. > > Signed-off-by: Colin Ian King Applied, thanks!