From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Ginger Li <ginger.jzllee@gmail.com>
Cc: mchehab@kernel.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] media: i2c: ov5648: Fix a data race on state->streaming
Date: Fri, 25 Sep 2026 14:01:33 +0300 [thread overview]
Message-ID: <arZUjd5QIs85m_Wh@kekkonen.localdomain> (raw)
In-Reply-To: <20260923015631.44973-1-ginger.jzllee@gmail.com>
Hi Ginger,
On Wed, Sep 23, 2026 at 09:56:31AM +0800, Ginger Li wrote:
> ov5648_s_stream() updates state->streaming after it has released
> sensor->mutex, while ov5648_resume() reads that field with sensor->mutex
> held. A concurrent resume can therefore observe a stale streaming state and
> leave the sensor in standby while the software believes that it is streaming,
> or the other way around.
Please wrap at 75 characters next time, I've fixed it this time.
--
Sakari Ailus
prev parent reply other threads:[~2026-09-25 11:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 1:56 Ginger Li
2026-09-23 14:11 ` Kieran Bingham
2026-09-25 11:01 ` Sakari Ailus [this message]
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=arZUjd5QIs85m_Wh@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=ginger.jzllee@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®