diff options
-rw-r--r-- | hw/xfree86/common/xf86fbman.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/xfree86/common/xf86fbman.c b/hw/xfree86/common/xf86fbman.c index b7c4afa1c..ee286d172 100644 --- a/hw/xfree86/common/xf86fbman.c +++ b/hw/xfree86/common/xf86fbman.c @@ -1095,12 +1095,10 @@ localQueryLargestOffscreenLinear( *size = 0; - if (!offman->LinearAreas) return FALSE; - pLink = offman->LinearAreas; - pLinkRet = pLink; - if (!pLink->area) { + if (pLink && !pLink->area) { + pLinkRet = pLink; while (pLink) { if (pLink->free) { if (pLink->linear.size > pLinkRet->linear.size) |