mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] media: i2c: Add missing v4l2_subdev_cleanup() calls
@ 2026-09-09  8:02 Aleksandr Chubuchnyi
  2026-09-09  8:02 ` [PATCH 1/5] media: i2c: imx296: Add missing v4l2_subdev_cleanup() call Aleksandr Chubuchnyi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Aleksandr Chubuchnyi @ 2026-09-09  8:02 UTC (permalink / raw)
  To: sakari.ailus, laurent.pinchart, mchehab, mani, michael.riesch,
	jacopo.mondi, nicholas, benjamin.mugnier, sylvain.petinot
  Cc: linux-media, linux-kernel

v4l2_subdev_init_finalize() allocates the subdev active state and only
v4l2_subdev_cleanup() frees it. These five drivers never call it, so they
leak the state on every unbind.

Separate patches because the Fixes tags span 2022 to 2023 and go to
different stable trees. The st-mipid02 one dates from the active state
conversion, not from the original driver.

Aleksandr Chubuchnyi (5):
  media: i2c: imx296: Add missing v4l2_subdev_cleanup() call
  media: i2c: imx415: Add missing v4l2_subdev_cleanup() call
  media: i2c: mt9m114: Add missing v4l2_subdev_cleanup() calls
  media: i2c: ov8858: Add missing v4l2_subdev_cleanup() call
  media: i2c: st-mipid02: Add missing v4l2_subdev_cleanup() call

 drivers/media/i2c/imx296.c     | 1 +
 drivers/media/i2c/imx415.c     | 1 +
 drivers/media/i2c/mt9m114.c    | 2 ++
 drivers/media/i2c/ov8858.c     | 2 ++
 drivers/media/i2c/st-mipid02.c | 2 ++
 5 files changed, 8 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-09  8:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09  8:02 [PATCH 0/5] media: i2c: Add missing v4l2_subdev_cleanup() calls Aleksandr Chubuchnyi
2026-09-09  8:02 ` [PATCH 1/5] media: i2c: imx296: Add missing v4l2_subdev_cleanup() call Aleksandr Chubuchnyi
2026-09-09  8:02 ` [PATCH 2/5] media: i2c: imx415: " Aleksandr Chubuchnyi
2026-09-09  8:02 ` [PATCH 3/5] media: i2c: mt9m114: Add missing v4l2_subdev_cleanup() calls Aleksandr Chubuchnyi
2026-09-09  8:02 ` [PATCH 4/5] media: i2c: ov8858: Add missing v4l2_subdev_cleanup() call Aleksandr Chubuchnyi
2026-09-09  8:02 ` [PATCH 5/5] media: i2c: st-mipid02: " Aleksandr Chubuchnyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®