Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795051569; b=Mk0OwLtH+rS5dnnI78RkAPy6C5xayQgo5JmOqIbKHV5j2OJ1WTudz4XagHi5CtRIs3Ca NVGIEeT7ocJ21NVNSBl1ShzALERgJ82auBOL4W/R8U49Olh7ifmKanX57U5l/0D538Cvc 523tZCzGgxfKD+awhkgMzmeESnBeDkPfYHBf7jX5H52A8sp+Mh/iYxZNSkaotjs6QjS/4 GastfozJVAMW3guR6PEsACis8P3Z08Q6q0bErRhp02cUt+kUxt8Z4apRJOSyHlZ2uVxzB ORVrOTG3KRzqKov/t+qICXJEVWzb1ViMpNf+ptp0RxUVsSs31RUH4NdQ9l2VzGBWtaA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795051569; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=Gaf6RGKR7Q5P5LzJYo4p7IAqHviBnuPTxLcpoosaMGU=; b=dNT2tCTBLhi4BC0qbEb78/RaMporr15t8I/5t/bTUUmpowLG2cDwAKHmxD1J/ZKtf+hq RhLbWczu2LVG6XDGUo7jowL6YXez6JZvbeWKmt+wabweTZrzRJ+SZxPD4+HxI63aomTAZ /JZNPS6B87i97bDL6NMDgU91CjeWiOvqzGl2SUj+umVCPcHHKTPFNiyaRCBCy8rQCxTEV rrKlO4KeBGwvzNj8brbF4ILojYszE+iMhNoHj/Jrqt7Uhtekrvwh0adv4t2MhpEmUzoGu 1GrMM4OnKkTml5U5oOd/f55U8nI2gDu1QxQ2MBaEs30TPKQCSGBgIIBuKNrQTlSnPuw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=AhtTa6XS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3831606A32A; Thu, 19 Nov 2026 01:26:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=AhtTa6XS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D2681F000C4; Thu, 19 Nov 2026 01:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795051569; bh=Gaf6RGKR7Q5P5LzJYo4p7IAqHviBnuPTxLcpoosaMGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=AhtTa6XSvRwEXzyC10UBNj0o+6u81dj9clrN9hwDMlNg1Z224yWqyK+egZfzaxSC2 sJO83WlZwQDujNV3IMp8uQSCYKDbHnmJKB7ybliTobJgDEbmh5vbJ3LXGhAMWwK/Y2 vqlMy6vDhVer0fysWwwhcOJgX+FRDdYMXHHaleCI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+f26bc23e42eeb548dee1@syzkaller.appspotmail.com, Rohinthan P , Hans Verkuil , Sasha Levin Subject: [PATCH 5.15 0253/2214] media: em28xx: use video_unregister_device for radio_dev Date: Wed, 18 Nov 2026 15:32:09 +0100 Message-ID: <20261118150020.262274651@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150009.797899913@linuxfoundation.org> References: <20261118150009.797899913@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rohinthan P [ Upstream commit 2579cbe68005f46fc7f8f95364f6b101b07b9d1c ] Commit 7c8bf63b7937 ("media: em28xx: use vb2_video_unregister_device") converted device unregistrations in em28xx to use vb2_video_unregister_device() instead of video_unregister_device(). However, radio devices do not have an associated videobuf2 queue (v4l2->radio_dev.queue is NULL). Calling vb2_video_unregister_device() on a radio device triggers a WARNING in vb2_video_unregister_device(): !vdev->queue WARNING: drivers/media/common/videobuf2/videobuf2-v4l2.c:1264 at vb2_video_unregister_device+0x1f8/0x200 Call Trace: em28xx_v4l2_init+0x1c39/0x3150 drivers/media/usb/em28xx/em28xx-video.c:3085 As documented in vb2_video_unregister_device(), video_unregister_device() should be used instead when vdev->queue is NULL. Revert to calling video_unregister_device() for v4l2->radio_dev in both em28xx_v4l2_fini() and the em28xx_v4l2_init() error unwind path. Fixes: 7c8bf63b7937 ("media: em28xx: use vb2_video_unregister_device") Reported-by: syzbot+f26bc23e42eeb548dee1@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=f26bc23e42eeb548dee1 Signed-off-by: Rohinthan P Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/usb/em28xx/em28xx-video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index a2cdde3bfe900..43aa5844855ac 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c @@ -2253,7 +2253,7 @@ static int em28xx_v4l2_fini(struct em28xx *dev) if (video_is_registered(&v4l2->radio_dev)) { dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n", video_device_node_name(&v4l2->radio_dev)); - vb2_video_unregister_device(&v4l2->radio_dev); + video_unregister_device(&v4l2->radio_dev); } if (video_is_registered(&v4l2->vbi_dev)) { dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n", @@ -2911,7 +2911,7 @@ static int em28xx_v4l2_init(struct em28xx *dev) dev_info(&dev->intf->dev, "V4L2 device %s deregistered\n", video_device_node_name(&v4l2->radio_dev)); - vb2_video_unregister_device(&v4l2->radio_dev); + video_unregister_device(&v4l2->radio_dev); } if (video_is_registered(&v4l2->vbi_dev)) { dev_info(&dev->intf->dev, -- 2.53.0