Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1464602

Re: [PATCH] ARM: cpuidle: Fix error return code

From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] ARM: cpuidle: Fix error return code
Date 2016-08-17 16:20 +0200
Message-ID <s79Rf-29m-13@gated-at.bofh.it> (permalink)
References <s4XUd-4eY-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <christophe.jaillet@wanadoo.fr>

Applied, thanks !

  -- Daniel


-- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ARM: cpuidle: Fix error return code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-08-11 15:10 +0200
  Re: [PATCH] ARM: cpuidle: Fix error return code Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-08-11 15:40 +0200
  Re: [PATCH] ARM: cpuidle: Fix error return code Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-08-17 16:20 +0200
    Re: [PATCH] ARM: cpuidle: Fix error return code "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-08-18 03:10 +0200
      Re: [PATCH] ARM: cpuidle: Fix error return code Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-08-18 10:00 +0200

csiph-web