diff options
author | Andreas Pretzsch <apr@cn-eng.de> | 2012-09-17 12:17:21 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-21 17:40:35 -0400 |
commit | 0cb166e0538b2b2fe746bfa3c82ef6fece9b8888 (patch) | |
tree | 2ddc1aaf34c1b91886bd331ce47baf7a4e0c58c2 /drivers/mfd | |
parent | 489422224b74c33e0efec940ad17fc02dcfe0e1f (diff) |
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@cn-eng.de>
Reviewed-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/mc13xxx-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 1ec79b54bd2f..1aba0238f426 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c | |||
@@ -676,7 +676,6 @@ int mc13xxx_common_init(struct mc13xxx *mc13xxx, | |||
676 | err_mask: | 676 | err_mask: |
677 | err_revision: | 677 | err_revision: |
678 | mc13xxx_unlock(mc13xxx); | 678 | mc13xxx_unlock(mc13xxx); |
679 | kfree(mc13xxx); | ||
680 | return ret; | 679 | return ret; |
681 | } | 680 | } |
682 | 681 | ||