All of lore.kernel.org
 help / color / mirror / Atom feed
From: 再回首 <308123027@qq.com>
To: linux-media <linux-media@vger.kernel.org>
Subject: soc camera driver module may case memory leak
Date: Mon, 5 Nov 2012 22:38:42 +0800	[thread overview]
Message-ID: <tencent_64608E82650520C00B66909A@qq.com> (raw)

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.

             reply	other threads:[~2012-11-05 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-05 14:38 再回首 [this message]
2012-11-06 11:30 ` soc camera driver module may case memory leak Guennadi Liakhovetski
2012-11-05 14:46 =?gb18030?B?1Nm72MrX?=

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_64608E82650520C00B66909A@qq.com \
    --to=308123027@qq.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.