]> 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)
commit938be4d2589c798de507d212a305ff7bd9e6f263
tree4d369e2f20b13caad5c3ed0b78e0c01addc51a58
parent98fadb45faec660ff58b0def9628338b475972fb
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