Bug 11362

Summary: [linux-2.6/drivers/char/ipmi/ipmi_si_intf.c:2704]: Memory leak: info
Product: Drivers Reporter: Daniel Marjamäki (danielm77)
Component: OtherAssignee: drivers_other
Status: RESOLVED CODE_FIX    
Severity: normal CC: akpm
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: linux-2.6 latest git Subsystem:
Regression: --- Bisected commit-id:

Description Daniel Marjamäki 2008-08-17 10:11:29 UTC
I believe this is a memory leak..

		info = kzalloc(sizeof(*info), GFP_KERNEL);
		if (!info)
			return;

#ifdef CONFIG_PPC_MERGE
		if (check_legacy_ioport(ipmi_defaults[i].port))
			continue;
#endif

The memory leak happens if execution reaches the continue line.
Comment 1 Andrew Morton 2008-08-17 15:18:55 UTC
Thanks, I queued a fix.