aboutsummaryrefslogblamecommitdiffstats
path: root/main/libxxf86vm/0004-Unlock-display-before-returning-alloc-error-in-XF86V.patch
blob: 3be28ee5b82c332b1f6e62b3fadb867ed55b70fe (plain) (tree)



























                                                                                        
From 6c82906f25abcb0f8ec92bcdaf1872bd8b63ca5d Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat, 13 Apr 2013 17:54:45 -0700
Subject: [PATCH 4/8] Unlock display before returning alloc error in
 XF86VidModeGetAllModeLines()

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
---
 src/XF86VMode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/XF86VMode.c b/src/XF86VMode.c
index 28c79c1..76276b6 100644
--- a/src/XF86VMode.c
+++ b/src/XF86VMode.c
@@ -322,6 +322,8 @@ XF86VidModeGetAllModeLines(Display* dpy, int screen, int* modecount,
             _XEatData(dpy, (rep.modecount) * sizeof(xXF86OldVidModeModeInfo));
 	else
             _XEatData(dpy, (rep.modecount) * sizeof(xXF86VidModeModeInfo));
+	UnlockDisplay(dpy);
+	SyncHandle();
         return False;
     }
     mdinfptr = (XF86VidModeModeInfo *) (
-- 
1.8.2.3