]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Do not set outparam on error during GEM handle allocation
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jan 2016 09:42:30 +0000 (09:42 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 5 Jan 2016 15:22:58 +0000 (16:22 +0100)
commit0b5d423704008fff89efbea9fda3b69d1028f148
tree4d369e2f20b13caad5c3ed0b78e0c01addc51a58
parent515ed329007d1a8618e9928c0e721eefcd7b5f3b
drm: Do not set outparam on error during GEM handle allocation

Good practice dictates that we do not leak stale information to our
callers, and should avoid overwriting an outparam on an error path.

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1451986951-3703-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_gem.c