Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 0/2] media: i2c: ov7740: Fix remove() teardown and PM runtime
@ 2026-06-15 21:04 Biren Pandya
  2026-06-15 21:04 ` [PATCH 1/2] media: i2c: ov7740: Fix use-after-destroy in remove() Biren Pandya
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Biren Pandya @ 2026-06-15 21:04 UTC (permalink / raw)
  To: Sakari Ailus, Mauro Carvalho Chehab, linux-media
  Cc: linux-kernel, Biren Pandya

This series addresses two severe issues in the teardown path of the
ov7740 image sensor driver.

The first patch addresses a kernel panic caused by a use-after-destroy
on the driver's mutex, exacerbated by a double-free of both the mutex
and the V4L2 control handler.

The second patch modernizes the runtime PM sleep sequence by properly
checking the return value of PM wake operations before issuing I2C
power down sequences, preventing unbalanced PM tracking or hangs on
disconnected devices.

Biren Pandya (2):
  media: i2c: ov7740: Fix use-after-destroy in remove()
  media: i2c: ov7740: Fix unchecked pm_runtime_get_sync() in remove()

 drivers/media/i2c/ov7740.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

-- 
2.50.1 (Apple Git-155)


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

end of thread, other threads:[~2026-07-08 12:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 21:04 [PATCH 0/2] media: i2c: ov7740: Fix remove() teardown and PM runtime Biren Pandya
2026-06-15 21:04 ` [PATCH 1/2] media: i2c: ov7740: Fix use-after-destroy in remove() Biren Pandya
2026-07-08  8:59   ` Sakari Ailus
2026-06-15 21:04 ` [PATCH 2/2] media: i2c: ov7740: Fix unchecked pm_runtime_get_sync() " Biren Pandya
2026-07-08  8:46   ` Sakari Ailus
     [not found] ` <20260708125720.27156-4-birenpandya@gmail.com>
2026-07-08 12:57   ` [PATCH v2 1/2] media: i2c: ov7740: fix unbalanced pm_runtime_get_sync in remove Biren Pandya
2026-07-08 12:57   ` [PATCH v2 2/2] media: i2c: ov7740: fix use-after-destroy " Biren Pandya

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