Bug 10660

Summary: (patch queued)[drivers/usb/gadget/pxa27x_udc.c:655]: Memory leak: req
Product: Drivers Reporter: Daniel Marjamäki (danielm77)
Component: USBAssignee: Alan (alan)
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.27-rc6 Subsystem:
Regression: --- Bisected commit-id:

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