aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorChristophe Jaillet <[email protected]>2016-08-11 13:02:30 +0000
committerRafael J. Wysocki <[email protected]>2016-08-12 00:33:14 +0000
commitaf48d7bc3756a0cd882d65bff14ab39746ba57fe (patch)
tree692dd57cdced9613f19920927d009be264740081 /drivers/cpufreq/cppc_cpufreq.c
parentintel_idle: correct BXT support (diff)
downloadkernel-af48d7bc3756a0cd882d65bff14ab39746ba57fe.tar.gz
kernel-af48d7bc3756a0cd882d65bff14ab39746ba57fe.zip
ARM: cpuidle: Fix error return code
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 <[email protected]> Acked-by: Lorenzo Pieralisi <[email protected]> Cc: 4.1+ <[email protected]> # 4.1+ Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions