diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-02 03:07:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-02 03:07:11 +0000 |
commit | 7d903498af41ddf51746198461dbade0a3cef444 (patch) | |
tree | 23fecbbb34c9603d9bfd27801cb6b7cfe19a48eb | |
parent | 8035e8f58dd3e20ea826d0a8b360778f4cccc495 (diff) |
drm: Don't unref the same fb many times by mistake due to deadlock handling
From Ville Syrjala
d7afdf360f4ac142832b098b4de974e867cc063c in linux-6.6.y/6.6.15
cb4daf271302d71a6b9a7c01bd0b6d76febd8f0c in mainline linux
-rw-r--r-- | sys/dev/pci/drm/drm_plane.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_plane.c b/sys/dev/pci/drm/drm_plane.c index 24e7998d173..01fbd3fb7b9 100644 --- a/sys/dev/pci/drm/drm_plane.c +++ b/sys/dev/pci/drm/drm_plane.c @@ -1387,6 +1387,7 @@ retry: out: if (fb) drm_framebuffer_put(fb); + fb = NULL; if (plane->old_fb) drm_framebuffer_put(plane->old_fb); plane->old_fb = NULL; |