diff options
author | 2018-07-14 14:32:12 +0200 | |
---|---|---|
committer | 2018-07-16 10:01:19 -0400 | |
commit | d530b5f1ca0bb66958a2b714bebe40a1248b9c15 (patch) | |
tree | aef68df3d225fd286c19533543b4bf52949d6130 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | drm/bridge: adv7511: Reset registers on hotplug (diff) | |
download | linux-dev-d530b5f1ca0bb66958a2b714bebe40a1248b9c15.tar.xz linux-dev-d530b5f1ca0bb66958a2b714bebe40a1248b9c15.zip |
drm: re-enable error handling
drm_legacy_ctxbitmap_next() returns idr_alloc() which can return
-ENOMEM, -EINVAL or -ENOSPC none of which are -1 . but the call sites
of drm_legacy_ctxbitmap_next() seem to be assuming that the error case
would be -1 (original return of drm_ctxbitmap_next() prior to 2.6.23
was actually -1). Thus reenable error handling by checking for < 0.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 62968144e673 ("drm: convert drm context code to use Linux idr")
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1531571532-22733-1-git-send-email-hofrat@osadl.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions