aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2022-07-11 19:39:17 +0200
committerMaxime Ripard <[email protected]>2022-07-13 10:46:10 +0200
commitcd00ed5187bff03d4c2ba143a5993383dd6ed66c (patch)
treeac3a2f265e04eb1aa13fc09e823dca16d0237357 /tools/perf/scripts/python
parent0c9d0ddd9cf4b43f8b3faf752c5a1aaa665ed099 (diff)
drm/vc4: hdmi: Protect device resources after removal
Whenever the device and driver are unbound, the main device and all the subdevices will be removed by calling their unbind() method. However, the DRM device itself will only be freed when the last user will have closed it. It means that there is a time window where the device and its resources aren't there anymore, but the userspace can still call into our driver. Fortunately, the DRM framework provides the drm_dev_enter() and drm_dev_exit() functions to make sure our underlying device is still there for the section protected by those calls. Let's add them to the HDMI driver. Acked-by: Thomas Zimmermann <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions