diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-03-25 15:00:20 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-03-25 15:00:20 +1000 |
commit | 8c46fa5a40503e4854d2f8d7dffbe09eb1333a77 (patch) | |
tree | c0acf6826c17a87f276c2de6aad544a84581749f | |
parent | 1e7d005aa0ccd86012194c8292fe55ca8534348b (diff) |
nouveau: fix potential oops in gpuobj_channel_takedown
-rw-r--r-- | shared-core/nouveau_object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/nouveau_object.c b/shared-core/nouveau_object.c index 36a559d9..454550d8 100644 --- a/shared-core/nouveau_object.c +++ b/shared-core/nouveau_object.c @@ -1162,6 +1162,9 @@ nouveau_gpuobj_channel_takedown(struct nouveau_channel *chan) DRM_DEBUG("ch%d\n", chan->id); + if (!chan->ramht_refs.next) + return; + list_for_each_safe(entry, tmp, &chan->ramht_refs) { ref = list_entry(entry, struct nouveau_gpuobj_ref, list); |