Skip to content

media: prevent driver device access in disconnect path

Shuah Khan linux-media lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: dvb-core move fe exit flag from fepriv to fe for driver accessdrivers/media/dvb-core/dvb_frontend.c drivers/media/dvb-core/dvb_frontend.h+16 -150 replies
2/3media: em28xx-dvb update fe exit flag to indicate device disconnectdrivers/media/usb/em28xx/em28xx-dvb.c+6 -20 replies
3/3media: drx39xyj driver change to check fe exit flag from releasedrivers/media/dvb-frontends/drx39xyj/drxj.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] media: prevent driver device access in disconnect path

Some fe drivers attempt to access the device for power control from their release routines. When release routines are called after device is disconnected, the attempts fail. fe drivers should avoid accessing the device, from their release interfaces when called from disconnect path. The problem is noticed in drx39xyj driver.

This patch series does the following to fix the problem:
- exports dvb-frontend exit flag by moving it from fepriv to fe.
- changes em28xx-dvb to update the fe exit path in its usb disconnect path
- changes drx39xyj driver to check and avoid accessing the device in its release interface.

Shuah Khan (3):
media: dvb-core move fe exit flag from fepriv to fe for driver access
media: em28xx-dvb update fe exit flag to indicate device disconnect
media: drx39xyj driver change to check fe exit flag from release

 drivers/media/dvb-core/dvb_frontend.c       |   26 +++++++++++---------------
 drivers/media/dvb-core/dvb_frontend.h       |    5 +++++
 drivers/media/dvb-frontends/drx39xyj/drxj.c |    4 +++-
 drivers/media/usb/em28xx/em28x-dvb.c       |    8 ++++++--
 4 files changed, 25 insertions(+), 18 deletions(-)
Signature · 1 line
1.7.10.4