diff options
| author | Tvrtko Ursulin <[email protected]> | 2025-04-18 16:25:12 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2025-04-28 18:04:15 +0000 |
| commit | 5b1834d6202f86180e451ad1a2a8a193a1da18fc (patch) | |
| tree | 7b6bf8d8c4c7d61e91b5f3b52124f5c02777cd25 /lib/debugobjects.c | |
| parent | drm/ttm: fix the warning for hit_low and evict_low (diff) | |
| download | kernel-5b1834d6202f86180e451ad1a2a8a193a1da18fc.tar.gz kernel-5b1834d6202f86180e451ad1a2a8a193a1da18fc.zip | |
drm/fdinfo: Protect against driver unbind
If we unbind a driver from the PCI device with an active DRM client,
subsequent read of the fdinfo data associated with the file descriptor in
question will not end well.
Protect the path with a drm_dev_enter/exit() pair.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Christian König <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Umesh Nerlige Ramappa <[email protected]>
Reviewed-by: Christian König <[email protected]>
Fixes: 3f09a0cd4ea3 ("drm: Add common fdinfo helper")
Cc: <[email protected]> # v6.5+
Signed-off-by: Christian König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
