diff options
| author | Danilo Krummrich <[email protected]> | 2022-08-24 18:13:25 +0200 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2022-08-25 09:44:25 +0200 |
| commit | 6acb416bf49f818dbf0aa71aee9f6cae93a505a4 (patch) | |
| tree | 9e6c2a884104c512471e3f376f20f40d708939c1 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 227295df4e37de66b61bbb3d1f10436f0acd33cc (diff) | |
drm/vc4: plane: protect device resources after removal
(Hardware) resources which are bound to the driver and device lifecycle
must not be accessed after the device and driver are unbound.
However, the DRM device isn't freed as long as the last user closed it,
hence userspace can still call into the driver.
Therefore protect the critical sections which are accessing those
resources with drm_dev_enter() and drm_dev_exit().
Fixes: 9872c7a31921 ("drm/vc4: plane: Switch to drmm_universal_plane_alloc()")
Signed-off-by: Danilo Krummrich <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions