diff options
| author | Mikko Perttunen <mperttunen@nvidia.com> | 2026-07-30 13:44:41 +0900 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-10-02 01:02:46 +0200 |
| commit | 27836c46a3db5a7869a9f7e181136f0c4d8bc0d1 (patch) | |
| tree | 7b78752ca6899e5f0b1c70d5f517bf110fa8c72e /scripts/Makefile.thinlto | |
| parent | b9110d86fa4ff96f3a7ecee0729f111149acc805 (diff) | |
| download | linux-27836c46a3db5a7869a9f7e181136f0c4d8bc0d1.tar.gz linux-27836c46a3db5a7869a9f7e181136f0c4d8bc0d1.zip | |
drm/tegra: Fix syncobj_in wait return value check
dma_fence_wait_timeout() returns the remaining timeout in jiffies on
success, zero on timeout, and a negative error code if interrupted. The
return value was assigned to 'err' and checked as if it were an errno,
the opposite of the correct logic.
Fix the code to use a properly typed variable and check each condition
correctly.
Fixes: 13abe0bb15ce ("drm/tegra: Implement job submission part of new UAPI")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/aJM_te551jUwnRv7@stanley.mountain/
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260730-b4-host1x-syncobj-wait-v1-1-afa730410392@nvidia.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
