Skip to content

Commit

Permalink
drm/vc4: Fix oops when userspace hands in a bad BO.
Browse files Browse the repository at this point in the history
We'd end up NULL pointer dereferencing because we didn't take the
error path out in the parent.  Fixes igt vc4_lookup_fail test.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: d5b1a78 ("drm/vc4: Add support for drawing 3D frames.")
Cc: stable@vger.kernel.org
  • Loading branch information
Eric Anholt committed Aug 20, 2016
1 parent 9326e6f commit 552416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ vc4_cl_lookup_bos(struct drm_device *dev,

fail:
drm_free_large(handles);
return 0;
return ret;
}

static int
Expand Down

0 comments on commit 552416c

Please sign in to comment.