Skip to content

Commit

Permalink
drm/nouveau/gem: fix object reference leak in a failure path
Browse files Browse the repository at this point in the history
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
  • Loading branch information
Ben Skeggs committed Jul 26, 2012
1 parent 887cd78 commit 5086f69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/nouveau/nouveau_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv,
if (nvbo->reserved_by && nvbo->reserved_by == file_priv) {
NV_ERROR(dev, "multiple instances of buffer %d on "
"validation list\n", b->handle);
drm_gem_object_unreference_unlocked(gem);
validate_fini(op, NULL);
return -EINVAL;
}
Expand Down

0 comments on commit 5086f69

Please sign in to comment.