summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-09-21 15:58:02 -0700
committerEric Anholt <eric@anholt.net>2007-09-21 15:58:02 -0700
commit3c995c2c4d2530e5bd01548764b20c4d062fd7a5 (patch)
treebbf049364ef041a010c7436af473ec0830b52b22 /libdrm
parent3d3a96ad4e5596187236898ca241515a21661b69 (diff)
Fix mapCount refcounting on unmap, even though the value is unused.
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 63242bce..0849f896 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -2874,6 +2874,7 @@ int drmBOUnmap(int fd, drmBO *buf)
if (ioctl(fd, DRM_IOCTL_BO_UNMAP, &arg)) {
return -errno;
}
+ buf->mapCount--;
return 0;
}