commit | d5ac2d3610daed5cee95bd95407b08268c7705ef | [log] [tgz] |
---|---|---|
author | Praveen Chidambaram <pchidamb@codeaurora.org> | Mon Oct 24 14:30:27 2011 -0600 |
committer | Praveen Chidambaram <pchidamb@codeaurora.org> | Mon Oct 24 14:30:27 2011 -0600 |
tree | 482feaa7e56ec58c3f19dfd7379ce2ded74bc2b9 | |
parent | 00f0deb25f2074062b0af7db870b8f34b4906b1d [diff] [blame] |
msm: pm-8x60: Fix incorrect check for freeing memory on error Change-Id: Ie53c04f694abe2c9cfe533d9d92a49537dd84556 Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
diff --git a/arch/arm/mach-msm/pm-8x60.c b/arch/arm/mach-msm/pm-8x60.c index c831d4b..911d546 100644 --- a/arch/arm/mach-msm/pm-8x60.c +++ b/arch/arm/mach-msm/pm-8x60.c
@@ -279,7 +279,7 @@ ret = 0; mode_sysfs_add_cpu_exit: - if (!ret) { + if (ret) { if (mode && mode->kobj) kobject_del(mode->kobj); kfree(mode);