[Bugme-new] [Bug 12532] New: linux-2.6/arch/arm/mach-omap2/mmc-twl4030.c:400: Memory leak: mmc
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Fri Jan 23 22:33:07 PST 2009
http://bugzilla.kernel.org/show_bug.cgi?id=12532
Summary: linux-2.6/arch/arm/mach-omap2/mmc-twl4030.c:400: Memory
leak: mmc
Product: Platform Specific/Hardware
Version: 2.5
KernelVersion: latest git tree
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ARM
AssignedTo: linux-arm-kernel at lists.arm.linux.org.uk
ReportedBy: danielm77 at spray.se
In the function twl4030_mmc_init the mmc is allocated in a loop.
In the loop there is a switch where the default case looks like this:
default:
pr_err("MMC%d configuration not supported!\n", c->mmc);
continue;
When that path is used the mmc will leak memory. I suggest adding a kfree
there.
This leak was found by cppcheck - http://sourceforge.net/projects/cppcheck
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Bugme-new
mailing list