summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/drm/drm_fb_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_fb_helper.c b/sys/dev/pci/drm/drm_fb_helper.c
index 237f274ebe1..785ed969911 100644
--- a/sys/dev/pci/drm/drm_fb_helper.c
+++ b/sys/dev/pci/drm/drm_fb_helper.c
@@ -575,6 +575,9 @@ static bool drm_fb_helper_is_bound(struct drm_fb_helper *fb_helper)
#ifdef notyet
if (READ_ONCE(dev->master))
return false;
+#else
+ if (!SPLAY_EMPTY(&dev->files))
+ return false;
#endif
drm_for_each_crtc(crtc, dev) {