diff options
| author | Chris Wilson <[email protected]> | 2017-01-10 14:40:31 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2017-01-11 08:53:34 +0100 |
| commit | 95b8c64afad824014178df6b396c6ba0f4b1b80a (patch) | |
| tree | 9519aa49a997e6e17073c0478885aeaa3099503b /tools/perf/scripts/python | |
| parent | fc36ec76f3f6a6578086b5c045322805df0b9d83 (diff) | |
drm: Fix error handling in drm_mm eviction kselftest
drivers/gpu/drm/selftests/test-drm_mm.c:1277 evict_everything()
warn: calling list_del() inside list_for_each
The list_del() inside the error handling in the eviction loop is
overkill. We have to undo the eviction scan to return the drm_mm back to
a recoverable state, so have to iterate over the full list, but we only
want to report the error once and once we have an error we can return
early.
Reported-by: Dan Carpenter <[email protected]>
Fixes: 560b32842912 ("drm: kselftest for drm_mm and eviction")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions