diff options
author | Danilo Krummrich <dakr@redhat.com> | 2022-08-24 19:13:26 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-08-25 10:44:26 +0300 |
commit | e0c953034a35b85b60ccc792a7d6e5fd802d944b (patch) | |
tree | dc4b64b16e8edf712e6a06a2a49aaa2afac170bb /drivers/dma-buf/udmabuf.c | |
parent | 6acb416bf49f818dbf0aa71aee9f6cae93a505a4 (diff) | |
download | linux-e0c953034a35b85b60ccc792a7d6e5fd802d944b.tar.xz |
drm/vc4: crtc: 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: 7cc4214c27cf ("drm/vc4: crtc: Switch to drmm_kzalloc")
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220824161327.330627-4-dakr@redhat.com
Diffstat (limited to 'drivers/dma-buf/udmabuf.c')
0 files changed, 0 insertions, 0 deletions