summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2016-08-11 15:02:30 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-12 02:33:14 +0200
commitaf48d7bc3756a0cd882d65bff14ab39746ba57fe (patch)
tree692dd57cdced9613f19920927d009be264740081 /drivers/watchdog
parentbef450962597ff39a7f9d53a30523aae9eb55843 (diff)
downloadlinux-af48d7bc3756a0cd882d65bff14ab39746ba57fe.tar.bz2
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 <christophe.jaillet@wanadoo.fr> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: 4.1+ <stable@vger.kernel.org> # 4.1+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/watchdog')
0 files changed, 0 insertions, 0 deletions