mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
drm/ttm: fix refcounting in ttm global code.
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>
This commit is contained in:
parent
b8c00ac5b5
commit
df748b025d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue