mbox

[0/4] media: davinci: vpif: fix use-after-free on driver unbind

Message ID 20211222142025.30364-1-johan@kernel.org (mailing list archive)
Headers

Message

Johan Hovold Dec. 22, 2021, 2:20 p.m. UTC
  When scanning the tree for drivers that did not handle platform-device
registration failures properly I stumbled upon this driver, which also
failed to deregister device structures before freeing them.

Included are also some related runtime PM imbalance fixes and a printk
clean up.

Johan


Johan Hovold (4):
  media: davinci: vpif: fix unbalanced runtime PM get
  media: davinci: vpif: fix unbalanced runtime PM enable
  media: davinci: vpif: fix use-after-free on driver unbind
  media: davinci: vpif: drop probe printk

 drivers/media/platform/davinci/vpif.c | 111 +++++++++++++++++++-------
 1 file changed, 81 insertions(+), 30 deletions(-)