drm: Don't unref the same fb many times by mistake due to deadlock handling
authorjsg <jsg@openbsd.org>
Fri, 2 Feb 2024 03:07:10 +0000 (03:07 +0000)
committerjsg <jsg@openbsd.org>
Fri, 2 Feb 2024 03:07:10 +0000 (03:07 +0000)
From Ville Syrjala
d7afdf360f4ac142832b098b4de974e867cc063c in linux-6.6.y/6.6.15
cb4daf271302d71a6b9a7c01bd0b6d76febd8f0c in mainline linux

sys/dev/pci/drm/drm_plane.c

index 24e7998..01fbd3f 100644 (file)
@@ -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;