Skip to content

media: davinci: vpif: fix use-after-free on driver unbind

Johan Hovold linux-media lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: davinci: vpif: fix unbalanced runtime PM getdrivers/media/platform/davinci/vpif.c+1 -01 reply
2/4media: davinci: vpif: fix unbalanced runtime PM enabledrivers/media/platform/davinci/vpif.c+9 -22 replies
3/4media: davinci: vpif: fix use-after-free on driver unbinddrivers/media/platform/davinci/vpif.c+71 -261 reply
4/4media: davinci: vpif: drop probe printkdrivers/media/platform/davinci/vpif.c+0 -21 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchLad Prabhakar
1/4R-b
2/4
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.32.0