All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Reichel <sre@kernel.org>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org, laurent.pinchart@ideasonboard.com
Subject: Re: [PATCH 1/1] omap3isp: Fix async notifier registration order
Date: Wed, 20 May 2015 01:41:43 +0200	[thread overview]
Message-ID: <20150519234143.GA20959@earth> (raw)
In-Reply-To: <1432076885-5107-1-git-send-email-sakari.ailus@iki.fi>

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

Hi Sakari,

On Wed, May 20, 2015 at 02:08:05AM +0300, Sakari Ailus wrote:
> The async notifier was registered before the v4l2_device was registered and
> before the notifier callbacks were set. This could lead to missing the
> bound() and complete() callbacks and to attempting to spin_lock() and
> uninitialised spin lock.
> 
> Also fix unregistering the async notifier in the case of an error --- the
> function may not fail anymore after the notifier is registered.
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>

I already noticed this during my Camera for N900 work and solved it
the same way, so:

Reviewed-By: Sebastian Reichel <sre@kernel.org>

You may want to add a Fixes Tag against the patch implementing the
async notifier support in omap3isp, since its quite easy to run into
the callback problems (at least I did) and the missing resource
freeing (due to EPROBE_AGAIN).

-- Sebastian

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-05-19 23:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19 23:08 [PATCH 1/1] omap3isp: Fix async notifier registration order Sakari Ailus
2015-05-19 23:41 ` Sebastian Reichel [this message]
2015-05-20  6:57   ` Laurent Pinchart
2015-05-20  7:14     ` Laurent Pinchart
2015-05-20  8:59       ` Sakari Ailus
2015-07-15 21:04 ` Timur Tabi
2015-07-16  7:35   ` Laurent Pinchart
2015-07-16 14:08     ` Timur Tabi

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=20150519234143.GA20959@earth \
    --to=sre@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    /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.