X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fcpuidle%2Fcpuidle-arm.c;h=f440d385ed3471a3abd0ff5ce63d133c5f46785f;hb=326dbf4a27d8cc308a411b2ff2df615522915992;hp=4ba3d3fe142f3ae4dc7039c98b7eeaa4b3aac78d;hpb=0603006b450004213eeed22d4fbcc103c994c2e6;p=deliverable%2Flinux.git diff --git a/drivers/cpuidle/cpuidle-arm.c b/drivers/cpuidle/cpuidle-arm.c index 4ba3d3fe142f..f440d385ed34 100644 --- a/drivers/cpuidle/cpuidle-arm.c +++ b/drivers/cpuidle/cpuidle-arm.c @@ -121,6 +121,7 @@ static int __init arm_idle_init(void) dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) { pr_err("Failed to allocate cpuidle device\n"); + ret = -ENOMEM; goto out_fail; } dev->cpu = cpu;