linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rui Miguel Silva <rmfrfs@gmail.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
	linux-media@vger.kernel.org, linux-leds@vger.kernel.org,
	jacek.anaszewski@gmail.com, laurent.pinchart@ideasonboard.com,
	Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org,
	viresh.kumar@linaro.org
Subject: Re: [PATCH v2 1/3] staging: greybus: light: fix memory leak in v4l2 register
Date: Wed, 9 Aug 2017 17:06:06 +0100	[thread overview]
Message-ID: <20170809160606.GB10002@arch-late.localdomain> (raw)
In-Reply-To: <20170809153658.qa4g27q2dbpjt5hj@valkosipuli.retiisi.org.uk>

Hi Sakari,
On Wed, Aug 09, 2017 at 06:36:59PM +0300, Sakari Ailus wrote:
> Hi Rui,
> 
> On Wed, Aug 09, 2017 at 02:20:02PM +0100, Rui Miguel Silva wrote:
> > Hi Sakari,
> > On Wed, Aug 09, 2017 at 02:15:53PM +0300, Sakari Ailus wrote:
> > > From: Rui Miguel Silva <rmfrfs@gmail.com>
> > > 
> > > We are allocating memory for the v4l2 flash configuration structure and
> > > leak it in the normal path. Just use the stack for this as we do not
> > > use it outside of this function.
> > > 
> > > Fixes: 2870b52bae4c ("greybus: lights: add lights implementation")
> > > Reported-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > > Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
> > > Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
> > > ---
> > 
> > This patch is *not* the patch that I have send, here are the code
> > differences from my patch to the one in this series:
> > 
> > <  	struct led_classdev_flash *iled = NULL;
> > ---
> > >  	struct led_classdev *iled = NULL;
> > 51c57
> > <  		iled = &channel_ind->fled;
> > ---
> > >  		iled = &channel_ind->fled.led_cdev;
> > 89c95
> > 
> > So, this do not apply at all.
> > Maybe you change something in your side.
> 
> It's been rebased on linux-next and in particular, patch 85f7ff9702bc
> ("media: v4l2-flash: Use led_classdev instead of led_classdev_flash for
> indicator").

Yeah, I miss that patch also that touch greybus, thanks for the
rebase.

---
Cheers,
	Rui

  reply	other threads:[~2017-08-09 16:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 11:15 [PATCH v2 0/3] Create sub-device per LED Sakari Ailus
2017-08-09 11:15 ` [PATCH v2 1/3] staging: greybus: light: fix memory leak in v4l2 register Sakari Ailus
2017-08-09 13:20   ` Rui Miguel Silva
2017-08-09 15:36     ` Sakari Ailus
2017-08-09 16:06       ` Rui Miguel Silva [this message]
2017-08-10 13:02   ` Hans Verkuil
2017-08-10 13:09     ` Hans Verkuil
2017-08-10 13:56     ` Sakari Ailus
2017-08-10 14:43       ` Rui Miguel Silva
2017-08-09 11:15 ` [PATCH v2 2/3] v4l2-flash-led-class: Create separate sub-devices for indicators Sakari Ailus
2017-08-09 16:09   ` Rui Miguel Silva
2017-08-10 13:18   ` Hans Verkuil
2017-08-09 11:15 ` [PATCH v2 3/3] v4l2-flash-led-class: Document v4l2_flash_init() references Sakari Ailus
2017-08-10 13:16   ` 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=20170809160606.GB10002@arch-late.localdomain \
    --to=rmfrfs@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=elder@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=greybus-dev@lists.linaro.org \
    --cc=jacek.anaszewski@gmail.com \
    --cc=johan@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-leds@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    --cc=sakari.ailus@linux.intel.com \
    --cc=viresh.kumar@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).