Bug 11362 - [linux-2.6/drivers/char/ipmi/ipmi_si_intf.c:2704]: Memory leak: info
Summary: [linux-2.6/drivers/char/ipmi/ipmi_si_intf.c:2704]: Memory leak: info
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-17 10:11 UTC by Daniel Marjamäki
Modified: 2008-08-17 15:19 UTC (History)
1 user (show)

See Also:
Kernel Version: linux-2.6 latest git
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.