Re: [PATCH] gpu: drm: i915: fix error return code of igt_threaded_blt()

From: Chris Wilson
Date: Mon Mar 08 2021 - 04:13:42 EST


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