[Intel-gfx] [PATCH] gpu: drm: i915: fix error return code of igt_threaded_blt()

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 8 09:12:15 UTC 2021


Quoting Jia-Ju Bai (2021-03-08 09:07:22)
> When kcalloc() returns NULL to tsk or thread, no error code of 
> igt_threaded_blt() is returned.
> To fix this bug, -ENOMEM is returned as error code.

Because we decided to skip the test if it could not be run due to
insufficient memory, as opposed to an internal allocation failure from
the driver.
-Chris


More information about the Intel-gfx mailing list