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:
f01026e
)
drm: fix fencing refcount error
author
Dave Airlie
<airlied@redhat.com>
Mon, 30 Jul 2007 23:22:45 +0000
(09:22 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 30 Jul 2007 23:25:51 +0000
(09:25 +1000)
This extra increase was causing fence leaks on my system, due to create/user add already increasing it twice no need for a 3rd go.
linux-core/drm_fence.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_fence.c
b/linux-core/drm_fence.c
index c4f7da15485d1dbfad099a884be881c69c5083d9..fdb2a4db3fd7e396a0516aaf97ac3b0b860c9e1b 100644
(file)
--- a/
linux-core/drm_fence.c
+++ b/
linux-core/drm_fence.c
@@
-597,7
+597,6
@@
int drm_fence_create_ioctl(struct drm_device *dev, void *data, struct drm_file *
* usage > 0. No need to lock dev->struct_mutex;
*/
- atomic_inc(&fence->usage);
arg->handle = fence->base.hash.key;
read_lock_irqsave(&fm->lock, flags);
@@
-830,7
+829,7
@@
int drm_fence_buffers_ioctl(struct drm_device *dev, void *data, struct drm_file
DRM_FENCE_FLAG_SHAREABLE);
if (ret)
return ret;
- atomic_inc(&fence->usage);
+
arg->handle = fence->base.hash.key;
read_lock_irqsave(&fm->lock, flags);