Re: [PATCH v2] media: usb: uvc: Fix NULL pointer dereference during USB device hot-unplug
From: Jie Deng
Date: Sun Nov 23 2025 - 22:08:01 EST
Hi Ricardo
Thank you for your reply
在 2025/11/22 16:17, Ricardo Ribalda 写道:
Hi JieThe kernel version I'm using is 5.4.18
On Sat, 22 Nov 2025 at 08:26, Jie Deng <dengjie03@xxxxxxxxxx> wrote:
Add safety checks to prevent kernel panic during the race window inCan you share the kernel version that you are using?
USB device disconnection.
This patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c93d73c9c2cfa7658f7100d201a47c4856746222
Should prevent the race that you are describing.
In your trace you have a reference to uvc_queue_streamoff that was
deleted by that patch
This patch may indeed eliminate the problem I described.
The 5.4 longterm version should not have synchronized this patch?
Thanks,
Jie Deng