All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Keisuke Tsukuda" <tkdkei@outlook.jp>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] usb: gadget: uvc: preserve the interval on rejected S_PARM
Date: Fri, 04 Dec 2026 07:14:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-249301@kernel.org> (raw)
In-Reply-To: <20261204070239.61791-1-tkdkei@outlook.jp>

> Commit 087ed08145e4 ("usb: gadget: uvc: reject zero interval in
> uvc_v4l2_s_parm()") added a check for a zero frame interval, but the
> function stores the converted interval before that check. S_PARM with
> timeperframe 0/1 therefore returns -EINVAL while leaving
> video->interval at zero. A later isochronous STREAMON computes zero
> requests and divides by zero when sizing them.
> 
> Check the converted interval before storing it, so a rejected request
> leaves the previous interval unchanged.
> 
> Fixes: 087ed08145e4 ("usb: gadget: uvc: reject zero interval in uvc_v4l2_s_parm()")
> Cc: stable@vger.kernel.org
> Signed-off-by: Keisuke Tsukuda <tkdkei@outlook.jp>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204070239.61791-1-tkdkei@outlook.jp?part=1

      reply	other threads:[~2026-12-04  7:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  7:02 [PATCH] usb: gadget: uvc: preserve the interval on rejected S_PARM Keisuke Tsukuda
2026-12-04  7:14 ` sashiko-bot [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=sashiko-outbox-249301@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tkdkei@outlook.jp \
    /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.