projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acfbf39
)
freedreno: also remove from name table on bo delete
author
Rob Clark
<robclark@freedesktop.org>
Fri, 17 May 2013 20:13:02 +0000
(16:13 -0400)
committer
Rob Clark
<robclark@freedesktop.org>
Fri, 17 May 2013 20:13:02 +0000
(16:13 -0400)
When adding the name tracking, I missed removing from the name table
when the bo was deleted, leaving a dangling pointer.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/freedreno_bo.c
patch
|
blob
|
history
diff --git
a/freedreno/freedreno_bo.c
b/freedreno/freedreno_bo.c
index
f52ce5e
..
8f78432
100644
(file)
--- a/
freedreno/freedreno_bo.c
+++ b/
freedreno/freedreno_bo.c
@@
-247,6
+247,8
@@
void fd_bo_del(struct fd_bo *bo)
};
pthread_mutex_lock(&table_lock);
drmHashDelete(bo->dev->handle_table, bo->handle);
+ if (bo->name)
+ drmHashDelete(bo->dev->name_table, bo->name);
drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req);
pthread_mutex_unlock(&table_lock);
}