Re: [PATCH 0/3] media: uvcvideo: Fix allocation for small frame sizes
From: Itay Chamiel
Date: Wed Jan 14 2026 - 07:17:46 EST
The patchset looks great. For me it required a tiny bit of backporting because I'm running Ubuntu 24.04 and editing the version of the kernel that's running on my machine (6.8.0-90.91), and uvc_alloc_urb_buffer() looks a little different there. No issue though and my tests run fine; first I tested small and large frame sizes with my custom camera, and then I also verified that standard webcams didn't break.
For the whole series:
Tested-by: Itay Chamiel <itay.chamiel@xxxx>
________________________________________
From: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>
Sent: Wednesday, January 14, 2026 12:32 PM
To: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>; Hans de Goede <hansg@xxxxxxxxxx>; Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>; Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
Cc: Laurent Pinchart <laurent.pinchart@xxxxxxxxx>; linux-media@xxxxxxxxxxxxxxx <linux-media@xxxxxxxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx <linux-kernel@xxxxxxxxxxxxxxx>; Ricardo Ribalda <ribalda@xxxxxxxxxxxx>; Itay Chamiel <itay.chamiel@xxxx>
Subject: [PATCH 0/3] media: uvcvideo: Fix allocation for small frame sizes
This set fixes a bug in uvc_alloc_urb_buffers() and two more style
patches.
The first patch was Reported by Itay, who asked if I could prepare and
send the patch on his behalf.
Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>
---
Ricardo Ribalda (3):
media: uvcvideo: Fix allocation for small frame sizes
media: uvcvideo: Pass allocation size directly to uvc_alloc_urb_buffer
media: uvcvideo: use min() for npacket calculation
drivers/media/usb/uvc/uvc_video.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
---
base-commit: 17526c7e69d07395e9d39794aacba42dcb02ff49
change-id: 20260114-uvc-alloc-urb-d1a0c617106a
Best regards,
--
Ricardo Ribalda <ribalda@xxxxxxxxxxxx>