Re: [PATCH 1/2] drm/sched: don't try to construct error code from NULL ptr

2019-11-29 Thread Steven Price
On 29/11/2019 13:26, Lucas Stach wrote: > If the job submission fails with a NULL fence returned instead of an > error pointer we must not try to convert this into an error. The error > code in this case will be 0, which causes a warning splat from > dma_fence_set_error(). > > Also most drivers re

[PATCH 1/2] drm/sched: don't try to construct error code from NULL ptr

2019-11-29 Thread Lucas Stach
If the job submission fails with a NULL fence returned instead of an error pointer we must not try to convert this into an error. The error code in this case will be 0, which causes a warning splat from dma_fence_set_error(). Also most drivers return NULL from the run_job callback if the fence alr