All of lore.kernel.org
 help / color / mirror / Atom feed
* soc camera driver module may case memory leak
@ 2012-11-05 14:38 再回首
  2012-11-06 11:30 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 3+ messages in thread
From: 再回首 @ 2012-11-05 14:38 UTC (permalink / raw)
  To: linux-media

Dear sir:
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)unmap
7)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.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* soc camera driver module may case memory leak
@ 2012-11-05 14:46 =?gb18030?B?1Nm72MrX?=
  0 siblings, 0 replies; 3+ messages in thread
From: =?gb18030?B?1Nm72MrX?= @ 2012-11-05 14:46 UTC (permalink / raw)
  To: =?gb18030?B?bGludXgtbWVkaWE=?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 106 bytes --]

Dear sir:
soc camera driver module may case memory leak

https://bugzilla.kernel.org/show_bug.cgi?id=49991

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-06 11:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 14:38 soc camera driver module may case memory leak 再回首
2012-11-06 11:30 ` Guennadi Liakhovetski
2012-11-05 14:46 =?gb18030?B?1Nm72MrX?=

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.