diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2021-07-01 19:07:47 +0200 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2021-07-08 14:31:19 +0200 |
commit | f8ac863b6a93863334cefb94285daaa6617381b5 (patch) | |
tree | a78ecc05eaa66fcb657a1aa765238e6c660b81b1 /sound/ac97 | |
parent | 39a364a19e0353d4f8e169b6174945909a409dca (diff) | |
download | linux-f8ac863b6a93863334cefb94285daaa6617381b5.tar.bz2 |
drm/gud: Free buffers on device removal
Free transfer and compression buffers on device removal instead of at
DRM device removal time. This ensures that the usual 2x8MB buffers are
released when the device is unplugged and not kept around should
userspace keep the DRM device fd open.
At least Ubuntu 20.04 doesn't release the DRM device on unplug.
The damage_lock mutex is not destroyed because it is used outside the
drm_dev_enter/exit block in gud_pipe_update(). AFAICT it's possible for
an open fbdev descriptor to trigger a commit after the USB device is gone.
v2: Don't destroy damage_lock
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210701170748.58009-1-noralf@tronnes.org
Diffstat (limited to 'sound/ac97')
0 files changed, 0 insertions, 0 deletions