Bug 10659

Summary: [drivers/media/video/vivi.c:337]: Memory leak: tmpbuf
Product: Drivers Reporter: Daniel Marjamäki (danielm77)
Component: Video(Other)Assignee: drivers_video-other
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: latest git tree Subsystem:
Regression: --- Bisected commit-id:

Description Daniel Marjamäki 2008-05-10 01:31:02 UTC
The tmpbuf is not deallocated (if vbuf is NULL):

	char *tmpbuf = kmalloc(wmax * 2, GFP_ATOMIC);
	void *vbuf = videobuf_to_vmalloc(&buf->vb);

	if (!tmpbuf)
		return;

	if (!vbuf)
		return;
Comment 1 Alan 2008-09-22 10:17:28 UTC
Fixed but bug not closed