drm/panfrost: Make ->run_job() return an ERR_PTR() when appropriate
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 30 Jun 2021 06:27:38 +0000 (08:27 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 1 Jul 2021 06:53:27 +0000 (08:53 +0200)
commit9f4e9110133245028f41411578423412a01a7233
tree68cf770e51bc35388461a331335c3a783cea9f6d
parent78efe21b6f8e6f4d39fceaf0cc5c534c11f9dd60
drm/panfrost: Make ->run_job() return an ERR_PTR() when appropriate

If the fence creation fail, we can return the error pointer directly.
The core will update the fence error accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210630062751.2832545-4-boris.brezillon@collabora.com
drivers/gpu/drm/panfrost/panfrost_job.c