[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1347898641-17575-1-git-send-email-apr@cn-eng.de>
Date: Mon, 17 Sep 2012 18:17:21 +0200
From: Andreas Pretzsch <apr@...eng.de>
To: Samuel Ortiz <sameo@...ux.intel.com>
Cc: Axel Lin <axel.lin@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] mfd: Use devm_* APIs for mc13xxx: remove leftover kfree
commit e7c706b1e5ccf28eaaf76c7a4613e80b0ca52863 migrated the allocation
of struct mc13xxx to devm_* functions, but left a kfree(mc13xxx) in the
mc13xxx_common_init error path. Remove it to prevent memory corruption.
Signed-off-by: Andreas Pretzsch <apr@...eng.de>
---
drivers/mfd/mc13xxx-core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c
index 1ec79b5..1aba023 100644
--- a/drivers/mfd/mc13xxx-core.c
+++ b/drivers/mfd/mc13xxx-core.c
@@ -676,7 +676,6 @@ int mc13xxx_common_init(struct mc13xxx *mc13xxx,
err_mask:
err_revision:
mc13xxx_unlock(mc13xxx);
- kfree(mc13xxx);
return ret;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists