From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Shuah Khan <shuahkh@osg.samsung.com>
Cc: sakari.ailus@linux.intel.com, mchehab@kernel.org,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] media: omap3isp change to devm for resources
Date: Fri, 16 Dec 2016 00:33:11 +0200 [thread overview]
Message-ID: <2731467.skKvVxvkgN@avalon> (raw)
In-Reply-To: <98a3d1794bc001f312a7db31ad03465ba697bb36.1481829722.git.shuahkh@osg.samsung.com>
Hi Shuah,
Thank you for the patch.
Sakari has submitted a similar patch as part of his kref series. Please use it
as a base point and rework it if you want to get it merged separately. I've
reviewed the patch and left quite a few comments that need to be addressed.
On Thursday 15 Dec 2016 12:40:08 Shuah Khan wrote:
> Using devm resources that have external dependencies such as a dev
> for a file handler could result in devm resources getting released
> durin unbind while an application has the file open holding pointer
> to the devm resource. This results in use-after-free errors when the
> application exits.
>
> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
> ---
> drivers/media/platform/omap3isp/isp.c | 71 ++++++++++++++++--------
> drivers/media/platform/omap3isp/ispccp2.c | 10 +++-
> drivers/media/platform/omap3isp/isph3a_aewb.c | 21 +++++---
> drivers/media/platform/omap3isp/isph3a_af.c | 21 +++++---
> drivers/media/platform/omap3isp/isphist.c | 5 +-
> 5 files changed, 92 insertions(+), 36 deletions(-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2016-12-15 22:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-15 19:40 [PATCH 0/2] omap3 devm usage removal Shuah Khan
2016-12-15 19:40 ` [PATCH 1/2] media: omap3isp fix media_entity_cleanup() after media device unregister Shuah Khan
2016-12-15 22:32 ` Laurent Pinchart
2016-12-15 22:53 ` Shuah Khan
2016-12-15 19:40 ` [PATCH 2/2] media: omap3isp change to devm for resources Shuah Khan
2016-12-15 22:33 ` Laurent Pinchart [this message]
2016-12-15 22:51 ` Shuah Khan
2016-12-15 23:06 ` Laurent Pinchart
2016-12-16 8:17 ` kbuild test robot
2016-12-16 11:39 ` Hans Verkuil
2016-12-16 12:19 ` Laurent Pinchart
2016-12-16 12:34 ` Hans Verkuil
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=2731467.skKvVxvkgN@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=shuahkh@osg.samsung.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox