mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shuah Khan <skhan@linuxfoundation.org>
To: Mauro Carvalho Chehab <mchehab@kernel.org>, hverkuil@xs4all.nl
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Shuah Khan <skhan@linuxfoundation.org>
Subject: [GIT PULL] Linux Media vimc update for Linux 6.15-rc1
Date: Thu, 6 Mar 2025 12:46:50 -0700	[thread overview]
Message-ID: <a3344fc3-c7ea-44ae-8fc8-86184315a58f@linuxfoundation.org> (raw)

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

Hi Mauro,

Please pull the following vimc update for Linux 6.15-rc1.

Fixes a bug in vimc streamer pipeline init code found by syzbot.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit a64dcfb451e254085a7daee5fe51bf22959d52d3:

   Linux 6.14-rc2 (2025-02-09 12:45:03 -0800)

are available in the Git repository at:

   git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-vimc-6.15-rc1

for you to fetch changes up to d6813eb9c3de01307801f253d89d777b4669a0d0:

   media: vimc: skip .s_stream() for stopped entities (2025-03-06 09:11:39 -0700)

----------------------------------------------------------------
linux-vimc-6.15-rc1

Fixes a bug in vimc streamer pipeline init code found by syzbot.

----------------------------------------------------------------
Nikita Zhandarovich (1):
       media: vimc: skip .s_stream() for stopped entities

  drivers/media/test-drivers/vimc/vimc-streamer.c | 6 ++++++
  1 file changed, 6 insertions(+)
----------------------------------------------------------------

[-- Attachment #2: linux-vimc-6.15-rc1.diff --]
[-- Type: text/x-patch, Size: 612 bytes --]

diff --git a/drivers/media/test-drivers/vimc/vimc-streamer.c b/drivers/media/test-drivers/vimc/vimc-streamer.c
index 807551a5143b..15d863f97cbf 100644
--- a/drivers/media/test-drivers/vimc/vimc-streamer.c
+++ b/drivers/media/test-drivers/vimc/vimc-streamer.c
@@ -59,6 +59,12 @@ static void vimc_streamer_pipeline_terminate(struct vimc_stream *stream)
 			continue;
 
 		sd = media_entity_to_v4l2_subdev(ved->ent);
+		/*
+		 * Do not call .s_stream() to stop an already
+		 * stopped/unstarted subdev.
+		 */
+		if (!v4l2_subdev_is_streaming(sd))
+			continue;
 		v4l2_subdev_call(sd, video, s_stream, 0);
 	}
 }

             reply	other threads:[~2025-03-06 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-06 19:46 Shuah Khan [this message]
2025-03-06 20:03 ` 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=a3344fc3-c7ea-44ae-8fc8-86184315a58f@linuxfoundation.org \
    --to=skhan@linuxfoundation.org \
    --cc=hverkuil@xs4all.nl \
    --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®