From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02D4D9443 for ; Fri, 1 May 2026 11:45:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777635933; cv=none; b=q5Ygc6LCg2hd8acOZkRiEgwn/e7hPk/VuPba5gq3/LjQrkZQCAP2s+S2Dg3B9EwLSmra8elyTb+UBsJwi1lV65V7KIaHs7rPbQi7amwCYkdMJ9BI9vlv7rJ3xImcA/iq7DuAeitMSPmOwdYdhgzEs4U5u6MKEmF+Ni9tflhbztA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777635933; c=relaxed/simple; bh=07JoORSd9k1yTt4Qno2lxgOGXbZtaFbCV27alZwz1WA=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=q1IxYPU4sCjRSrZ5w4K1S0fn9cgyys/EiopWU9+ODwP6B6Lui29/2Fe+Tz9kVA+o0QQMwlHyUU8Wf2wAujzHraJv25zM8PDfHPgmEugfqYJkHQ6mEs5+7Am1+kgf4a4/mkhXJ5YGnrw5RQ/vg+261nbWP+eJn2L/275ROwR8Yfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w32I9VNo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="w32I9VNo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54428C2BCB4; Fri, 1 May 2026 11:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777635932; bh=07JoORSd9k1yTt4Qno2lxgOGXbZtaFbCV27alZwz1WA=; h=Subject:To:Cc:From:Date:From; b=w32I9VNocXGLtDdxhQByaewNG5A1GwwM+dnOR/twPLRYI3YOa5xbaBS1ZO60Z1bLu RLtXBMiySYCxX06s12+D5VS11zRYSgHtCy+Dez7nMcXAVLfuVvOu4dJRxR24Qo8yYV Yqz0LGfRwsVbdp/8M7HAyfvPQyIef7s7BMmyiLjQ= Subject: FAILED: patch "[PATCH] media: rc: igorplugusb: heed coherency rules" failed to apply to 6.18-stable tree To: oneukum@suse.com,hverkuil+cisco@kernel.org,sean@mess.org Cc: From: Date: Fri, 01 May 2026 13:45:30 +0200 Message-ID: <2026050130-repaint-elevate-1042@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y git checkout FETCH_HEAD git cherry-pick -x eac69475b01fe1e861dfe3960b57fa95671c132e # git commit -s git send-email --to '' --in-reply-to '2026050130-repaint-elevate-1042@gregkh' --subject-prefix 'PATCH 6.18.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From eac69475b01fe1e861dfe3960b57fa95671c132e Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Wed, 11 Feb 2026 19:11:51 +0100 Subject: [PATCH] media: rc: igorplugusb: heed coherency rules In a control request, the USB request structure can be subject to DMA on some HCs. Hence it must obey the rules for DMA coherency. Allocate it separately. Fixes: b1c97193c6437 ("[media] rc: port IgorPlug-USB to rc-core") Cc: stable@vger.kernel.org Signed-off-by: Oliver Neukum Signed-off-by: Sean Young Signed-off-by: Hans Verkuil diff --git a/drivers/media/rc/igorplugusb.c b/drivers/media/rc/igorplugusb.c index 5ceb5ca44e23..3e10f6fe89f8 100644 --- a/drivers/media/rc/igorplugusb.c +++ b/drivers/media/rc/igorplugusb.c @@ -34,7 +34,7 @@ struct igorplugusb { struct device *dev; struct urb *urb; - struct usb_ctrlrequest request; + struct usb_ctrlrequest *request; struct timer_list timer; @@ -122,7 +122,7 @@ static void igorplugusb_cmd(struct igorplugusb *ir, int cmd) { int ret; - ir->request.bRequest = cmd; + ir->request->bRequest = cmd; ir->urb->transfer_flags = 0; ret = usb_submit_urb(ir->urb, GFP_ATOMIC); if (ret && ret != -EPERM) @@ -164,13 +164,17 @@ static int igorplugusb_probe(struct usb_interface *intf, if (!ir) return -ENOMEM; + ir->request = kzalloc_obj(*ir->request, GFP_KERNEL); + if (!ir->request) + goto fail; + ir->dev = &intf->dev; timer_setup(&ir->timer, igorplugusb_timer, 0); - ir->request.bRequest = GET_INFRACODE; - ir->request.bRequestType = USB_TYPE_VENDOR | USB_DIR_IN; - ir->request.wLength = cpu_to_le16(MAX_PACKET); + ir->request->bRequest = GET_INFRACODE; + ir->request->bRequestType = USB_TYPE_VENDOR | USB_DIR_IN; + ir->request->wLength = cpu_to_le16(MAX_PACKET); ir->urb = usb_alloc_urb(0, GFP_KERNEL); if (!ir->urb) @@ -228,6 +232,7 @@ static int igorplugusb_probe(struct usb_interface *intf, usb_free_urb(ir->urb); rc_free_device(ir->rc); kfree(ir->buf_in); + kfree(ir->request); return ret; } @@ -244,6 +249,7 @@ static void igorplugusb_disconnect(struct usb_interface *intf) usb_free_urb(ir->urb); rc_free_device(ir->rc); kfree(ir->buf_in); + kfree(ir->request); } static const struct usb_device_id igorplugusb_table[] = {