diff options
author | Izik Eidus <ieidus@redhat.com> | 2010-04-06 01:56:03 +0300 |
---|---|---|
committer | Izik Eidus <ieidus@redhat.com> | 2010-04-06 01:56:03 +0300 |
commit | 316b01606181519f628a6f95ec9db6be38939069 (patch) | |
tree | c9ac78b0f9b4590acc8acca2040264334cacca4b | |
parent | f7540a4bbd89b25f2b5e9d30635897757ad52c04 (diff) |
qxl: fix small race when entering and exiting to vga mode
So there was a small race when the vram memslot is deleted
however we still got commands to create device manged bitmaps...
Tried it with zillion times entering and exiting vga this time :)
Signed-off-by: Izik Eidus <ieidus@redhat.com>
-rw-r--r-- | display/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/display/driver.c b/display/driver.c index 321d6fe..a7e168d 100644 --- a/display/driver.c +++ b/display/driver.c @@ -1368,7 +1368,7 @@ HBITMAP APIENTRY DrvCreateDeviceBitmap(DHPDEV dhpdev, SIZEL size, ULONG format) pdev = (PDev *)dhpdev; - if (!pdev->dd_initialized) { + if (!pdev->dd_initialized || !pdev->dd_slot_initialized) { return 0; } |