Bug 11778 - [linux-2.6/drivers/staging/at76_usb/at76_usb.c:2323]: Memory leak: iwe
Summary: [linux-2.6/drivers/staging/at76_usb/at76_usb.c:2323]: Memory leak: iwe
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-18 00:40 UTC by Daniel Marjamäki
Modified: 2009-07-28 16:53 UTC (History)
0 users

See Also:
Kernel Version: latest git tree
Subsystem:
Regression: No
Bisected commit-id:


Attachments
at76_usb.c leak (738 bytes, patch)
2008-10-18 07:50 UTC, Diego Calleja
Details | Diff

Description Daniel Marjamäki 2008-10-18 00:40:35 UTC
There is a possible memory leak here..

	if (priv->scan_state != SCAN_COMPLETED)
		/* scan not yet finished */
		return -EAGAIN;
Comment 1 Diego Calleja 2008-10-18 07:50:17 UTC
Created attachment 18365 [details]
at76_usb.c leak

Patch adding a kfree()
Comment 2 Andrew Morton 2008-10-20 17:15:26 UTC
Please submit that patch via email - patches in bugzilla are a pita.

Thanks.
Comment 3 Greg Kroah-Hartman 2009-07-28 16:53:53 UTC
closing out.

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