Bug 10659 - [drivers/media/video/vivi.c:337]: Memory leak: tmpbuf
Summary: [drivers/media/video/vivi.c:337]: Memory leak: tmpbuf
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 01:31 UTC by Daniel Marjamäki
Modified: 2008-09-22 10:17 UTC (History)
0 users

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


Attachments

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

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