summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/fbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fb/fbd.c')
-rw-r--r--sys/dev/fb/fbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/fb/fbd.c b/sys/dev/fb/fbd.c
index f9b4d8e..6b7b731 100644
--- a/sys/dev/fb/fbd.c
+++ b/sys/dev/fb/fbd.c
@@ -263,6 +263,8 @@ fbd_unregister(struct fb_info* info)
LIST_FOREACH_SAFE(entry, &fb_list_head, fb_list, tmp) {
if (entry->fb_info == info) {
LIST_REMOVE(entry, fb_list);
+ if (LIST_EMPTY(&fb_list_head))
+ vt_fb_detach(info);
free(entry, M_DEVBUF);
return (0);
}
OpenPOWER on IntegriCloud