Re: [PATCH -next] drm: Fix error handling in drm_legacy_addctx

2019-01-07 Thread Daniel Vetter
On Sat, Dec 29, 2018 at 10:49:07AM +0800, YueHaibing wrote: > 'ctx->handle' is unsigned, it never less than zero. > This patch use int 'tmp_handle' to handle the err condition. > > Fixes: 62968144e673 ("drm: convert drm context code to use Linux idr") > Signed-off-by: YueHaibing Queue for 5.1 (s

[PATCH -next] drm: Fix error handling in drm_legacy_addctx

2019-01-01 Thread YueHaibing
'ctx->handle' is unsigned, it never less than zero. This patch use int 'tmp_handle' to handle the err condition. Fixes: 62968144e673 ("drm: convert drm context code to use Linux idr") Signed-off-by: YueHaibing --- drivers/gpu/drm/drm_context.c | 15 +-- 1 file changed, 9 insertions(+