projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c00ac
)
drm/ttm: fix refcounting in ttm global code.
author
Dave Airlie
<airlied@linux.ie>
Tue, 29 Sep 2009 03:56:38 +0000
(13:56 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 6 Oct 2009 05:46:10 +0000
(15:46 +1000)
the global refcount wasn't being increased after the first reference.
this caused an oops on unload on a multi-gpu card.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_global.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_global.c
b/drivers/gpu/drm/ttm/ttm_global.c
index 541744d00d3e549b0d6665eb0d9c727522f867bc..b17007178a36e57bb59c82e8f3378fe9f5741d29 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_global.c
+++ b/
drivers/gpu/drm/ttm/ttm_global.c
@@
-82,8
+82,8
@@
int ttm_global_item_ref(struct ttm_global_reference *ref)
if (unlikely(ret != 0))
goto out_err;
- ++item->refcount;
}
+ ++item->refcount;
ref->object = item->object;
object = item->object;
mutex_unlock(&item->mutex);