summaryrefslogtreecommitdiff
path: root/include/drm/drm_syncobj.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-12-29 05:49:07 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-01-07 13:26:31 +0300
commitc39191feed4540fed98badeb484833dcf659bb96 (patch)
tree7ecf7ff83106a2a7acc9375bda5ecfc8e829b56c /include/drm/drm_syncobj.h
parent227ad6d957898a88b1746e30234ece64d305f066 (diff)
downloadlinux-c39191feed4540fed98badeb484833dcf659bb96.tar.xz
drm: Fix error handling in drm_legacy_addctx
'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 <yuehaibing@huawei.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20181229024907.12852-1-yuehaibing@huawei.com
Diffstat (limited to 'include/drm/drm_syncobj.h')
0 files changed, 0 insertions, 0 deletions