Re: [PATCH] ARM: cpuidle: Fix error return code
From: Daniel Lezcano <hidden>
Date: 2016-08-17 14:16:15
Also in:
kernel-janitors, lkml
From: Daniel Lezcano <hidden>
Date: 2016-08-17 14:16:15
Also in:
kernel-janitors, lkml
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 <redacted>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