From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753868AbcHRBIK (ORCPT ); Wed, 17 Aug 2016 21:08:10 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:50012 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753342AbcHRBIJ (ORCPT ); Wed, 17 Aug 2016 21:08:09 -0400 From: "Rafael J. Wysocki" To: Daniel Lezcano Cc: Christophe JAILLET , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] ARM: cpuidle: Fix error return code Date: Thu, 18 Aug 2016 03:13:39 +0200 Message-ID: <6453323.GiPU6Gidg3@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.8.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <57B471A9.8060103@linaro.org> References: <1470920550-21625-1-git-send-email-christophe.jaillet@wanadoo.fr> <57B471A9.8060103@linaro.org> 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 Wednesday, August 17, 2016 04:16:09 PM Daniel Lezcano wrote: > On 08/11/2016 03:02 PM, Christophe JAILLET wrote: > > We know that 'ret = 0' because it has been tested a few lines above. > > So, if 'kzalloc' fails, 0 will be returned instead of an error code. > > Return -ENOMEM instead. > > > > Fixes: a0d46a3dfdc3 ("ARM: cpuidle: Register per cpuidle device") > > > > Signed-off-by: Christophe JAILLET > > Applied, thanks ! Daniel, I've applied it too and earlier. Thanks, Rafael