[PATCH v4 0/2] uvc: Fix OOPs after rmmod if gpio unit is used

From: Ricardo Ribalda
Date: Tue Nov 05 2024 - 09:06:36 EST


Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>
---
Changes in v4: Thanks Laurent.
- Remove refcounted cleaup to support devres.
- Link to v3: https://lore.kernel.org/r/20241105-uvc-crashrmmod-v3-1-c0959c8906d3@xxxxxxxxxxxx

Changes in v3: Thanks Sakari.
- Rename variable to initialized.
- Other CodeStyle.
- Link to v2: https://lore.kernel.org/r/20241105-uvc-crashrmmod-v2-1-547ce6a6962e@xxxxxxxxxxxx

Changes in v2: Thanks to Laurent.
- The main structure is not allocated with devres so there is a small
period of time where we can get an irq with the structure free. Do not
use devres for the IRQ.
- Link to v1: https://lore.kernel.org/r/20241031-uvc-crashrmmod-v1-1-059fe593b1e6@xxxxxxxxxxxx

---
Ricardo Ribalda (2):
media: uvcvideo: Remove refcounted cleanup
media: uvcvideo: Fix crash during unbind if gpio unit is in use

drivers/media/usb/uvc/uvc_driver.c | 30 ++++++++----------------------
drivers/media/usb/uvc/uvcvideo.h | 1 -
2 files changed, 8 insertions(+), 23 deletions(-)
---
base-commit: c7ccf3683ac9746b263b0502255f5ce47f64fe0a
change-id: 20241031-uvc-crashrmmod-666de3fc9141

Best regards,
--
Ricardo Ribalda <ribalda@xxxxxxxxxxxx>