Bug 10660 - (patch queued)[drivers/usb/gadget/pxa27x_udc.c:655]: Memory leak: req
Summary: (patch queued)[drivers/usb/gadget/pxa27x_udc.c:655]: Memory leak: req
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 01:37 UTC by Daniel Marjamäki
Modified: 2009-03-17 09:12 UTC (History)
0 users

See Also:
Kernel Version: 2.6.27-rc6
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Daniel Marjamäki 2008-05-10 01:37:38 UTC
If the eq is NULL, req is not deallocated:

	req = kzalloc(sizeof *req, gfp_flags);
	if (!req || !_ep)
		return NULL;
Comment 1 Daniel Marjamäki 2008-05-10 01:38:57 UTC
I was too quick when submitting. So I of course mean "If _ep is NULL.."
Comment 2 Alan 2008-09-23 14:22:13 UTC
grabbed for a trivial fix

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