[PATCH 1/2] drm: Do not set outparam on error during GEM handle allocation

2016-01-05 Thread Thierry Reding
On Tue, Jan 05, 2016 at 09:42:30AM +, Chris Wilson wrote: > 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ä > Signed-off-by: Chris Wilson > Cc: Ville Syrjälä > --- >

[PATCH 1/2] drm: Do not set outparam on error during GEM handle allocation

2016-01-05 Thread Chris Wilson
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ä Signed-off-by: Chris Wilson Cc: Ville Syrjälä --- drivers/gpu/drm/drm_gem.c | 6 -- 1 file changed, 4 insertions(+), 2