projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a50637
)
r600g: don't unmap if we haven't mapped
author
Dave Airlie
<airlied@redhat.com>
Fri, 13 May 2011 04:03:47 +0000
(14:03 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 13 May 2011 04:03:47 +0000
(14:03 +1000)
should fix https://bugs.freedesktop.org/show_bug.cgi?id=37157
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/r600/drm/radeon_bo.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/r600/drm/radeon_bo.c
b/src/gallium/winsys/r600/drm/radeon_bo.c
index 9a534dddf323bf808988f635f7aa1b0406c2a737..cd817fc240bf163cc3a07cdc94fa90baf3502e24 100644
(file)
--- a/
src/gallium/winsys/r600/drm/radeon_bo.c
+++ b/
src/gallium/winsys/r600/drm/radeon_bo.c
@@
-64,8
+64,10
@@
int radeon_bo_fixed_map(struct radeon *radeon, struct radeon_bo *bo)
static void radeon_bo_fixed_unmap(struct radeon *radeon, struct radeon_bo *bo)
{
- munmap(bo->data, bo->size);
- bo->data = NULL;
+ if (bo->data) {
+ munmap(bo->data, bo->size);
+ bo->data = NULL;
+ }
}
struct radeon_bo *radeon_bo(struct radeon *radeon, unsigned handle,