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 01:06:10 +0200 [thread overview]
Message-ID: <3421880.AmHR8TnS5I@avalon> (raw)
In-Reply-To: <03073060-1166-7f61-8b3f-287a9f148b40@osg.samsung.com>
Hi Shuah,
On Thursday 15 Dec 2016 15:51:41 Shuah Khan wrote:
> On 12/15/2016 03:33 PM, Laurent Pinchart wrote:
> > 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.
>
> I really don't mind if Sakari uses this patch as is and makes the changes
> you requested and submits devm removal as an independent patch.
>
> My intent behind sending this one is to help him out since I already did
> this patch that is on top of 4.9-rc8 without any dependencies on Sakari's
> RFC patch.
I've only seen your reply to Sakari's patch after replying to this one. Thank
you for providing your version, I'll let Sakari merge both and resubmit.
> > 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 23:06 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
2016-12-15 22:51 ` Shuah Khan
2016-12-15 23:06 ` Laurent Pinchart [this message]
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=3421880.AmHR8TnS5I@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