All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

* Re: soc camera driver module may case memory leak
  2012-11-05 14:38 再回首
@ 2012-11-06 11:30 ` Guennadi Liakhovetski
  0 siblings, 0 replies; 3+ messages in thread
From: Guennadi Liakhovetski @ 2012-11-06 11:30 UTC (permalink / raw)
  To: 再回首; +Cc: linux-media

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=utf-8, Size: 1016 bytes --]

Hi

On Mon, 5 Nov 2012, å~F~Må~[~^é¦~V wrote:

> Dear sir:
> why not call "videobuf_mmap_free",when device close call "soc_camera_close" in linux-2.6.x;

I haven't found any version, where this has been done. I don't think this 
is needed, because videobuf mmap allocations will be freed automatically 
upon the last close(). Please, dismiss your bugzilla entry.

Thanks
Guennadi

> 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.N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¥Š{±™çbj)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢j/êäz¹Þ–Šà2ŠÞ™¨è­Ú&¢)ß¡«a¶Ú\x7fþø\x1e®G«éh®\x0fæj:+v‰¨Šwè†Ù¥

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

* 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

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:46 soc camera driver module may case memory leak =?gb18030?B?1Nm72MrX?=
  -- strict thread matches above, loose matches on Subject: below --
2012-11-05 14:38 再回首
2012-11-06 11:30 ` Guennadi Liakhovetski

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.