diff options
author | Dave Airlie <airlied@linux.ie> | 2009-09-29 13:56:38 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-06 15:46:10 +1000 |
commit | df748b025d1357c2b9659e16a6040596e60e4257 (patch) | |
tree | 7b95bbb0437d3b811e0d5dc260111278e163eb43 /drivers | |
parent | b8c00ac5b50b54491657f8b6740db1df50149944 (diff) | |
download | op-kernel-dev-df748b025d1357c2b9659e16a6040596e60e4257.zip op-kernel-dev-df748b025d1357c2b9659e16a6040596e60e4257.tar.gz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_global.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_global.c b/drivers/gpu/drm/ttm/ttm_global.c index 541744d..b170071 100644 --- 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); |