mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
95b8c64afa
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 <dan.carpenter@oracle.com>
Fixes:
|
||
---|---|---|
.. | ||
drm_mm_selftests.h | ||
drm_selftest.c | ||
drm_selftest.h | ||
Makefile | ||
test-drm_mm.c |