milos-linux/drivers/gpu/drm/panfrost
Gyeyoung Baek 459d75523b drm/panfrost: Fix wait_bo ioctl leaking positive return from dma_resv_wait_timeout()
dma_resv_wait_timeout() returns a positive 'remaining jiffies' value
on success, 0 on timeout, and -errno on failure.

panfrost_ioctl_wait_bo() returns this 'long' result from an int-typed
ioctl handler, so positive values reach userspace as bogus errors.
Explicitly set ret to 0 on the success path.

Fixes: f3ba91228e ("drm/panfrost: Add initial panfrost driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gyeyoung Baek <gye976@gmail.com>
Reviewed-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/fe33f82fded7be1c18e2e0eb2db451d5a738cf39.1776581974.git.gye976@gmail.com
Signed-off-by: Steven Price <steven.price@arm.com>
2026-05-07 14:52:55 +01:00
..
Kconfig
Makefile
panfrost_devfreq.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
panfrost_devfreq.h
panfrost_device.c drm/panfrost: Introduce huge tmpfs mountpoint option 2025-12-08 10:56:31 +01:00
panfrost_device.h drm/panfrost: Expose the selected coherency protocol to the UMD 2025-12-09 13:09:36 +01:00
panfrost_drv.c drm/panfrost: Fix wait_bo ioctl leaking positive return from dma_resv_wait_timeout() 2026-05-07 14:52:55 +01:00
panfrost_drv.h drm/panfrost: Introduce huge tmpfs mountpoint option 2025-12-08 10:56:31 +01:00
panfrost_dump.c drm/panfrost: Replace DRM driver allocation method with newer one 2025-10-20 16:05:16 +01:00
panfrost_dump.h
panfrost_features.h
panfrost_gem.c drm/panfrost: Test for imported buffers with drm_gem_is_imported() 2026-03-02 11:51:41 +00:00
panfrost_gem.h drm/panfrost: Add flag to map GEM object Write-Back Cacheable 2025-12-09 13:09:37 +01:00
panfrost_gem_shrinker.c drm/panfrost: Replace DRM driver allocation method with newer one 2025-10-20 16:05:16 +01:00
panfrost_gpu.c drm/panfrost: Expose the selected coherency protocol to the UMD 2025-12-09 13:09:36 +01:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
panfrost_job.h drm/panfrost: Rename panfrost_job functions to reflect real role 2025-10-20 16:05:18 +01:00
panfrost_mmu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
panfrost_mmu.h drm/panfrost: Add forward declaration and types header 2025-10-20 16:05:17 +01:00
panfrost_perfcnt.c drm/panfrost: Handle error when allocating AS number 2025-10-20 16:05:17 +01:00
panfrost_perfcnt.h
panfrost_regs.h drm/panfrost: Expose the selected coherency protocol to the UMD 2025-12-09 13:09:36 +01:00
TODO