Thread (5 messages) 5 messages, 4 authors, 2016-08-18

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

From: Lorenzo Pieralisi <hidden>
Date: 2016-08-11 13:39:09
Also in: kernel-janitors, lkml

On Thu, Aug 11, 2016 at 03:02:30PM +0200, 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>
---
 drivers/cpuidle/cpuidle-arm.c | 1 +
 1 file changed, 1 insertion(+)
Acked-by: Lorenzo Pieralisi <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help