Bug 50031 - soc camera driver module may case memory leak
Summary: soc camera driver module may case memory leak
Status: RESOLVED DUPLICATE of bug 49991
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: All Linux
: P1 high
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 06:21 UTC by qingbin li
Modified: 2012-11-05 14:14 UTC (History)
1 user (show)

See Also:
Kernel Version: linux-2.6.x;linux-3.x.x
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description qingbin li 2012-11-04 06:21:17 UTC
why not call "videobuf_mmap_free",when device close call "soc_camera_close" in
linux-2.6.x;do the same in linux-3.x.x?
video capture flow:
1)open
2)set fmt
3)request buffer-->__videobuf_mmap_setup-->videobuf_alloc_vb(q)
4)mmap
5)enqueue, dequeue
6)close--->soc_camera_close-->?should call:videobuf_mmap_free
NOTE:
I have reviewed all the code, found:soc_camera_driver device driver coders has
no way(callback function) to call videobuf_mmap_free; it will case memory leak.
Comment 1 Alan 2012-11-05 14:14:03 UTC

*** This bug has been marked as a duplicate of bug 49991 ***

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