The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: [PATCH v1 0/2] Fix dma_resv_wait_timeout() return handling in rocket/panfrost ioctls
       [not found] <cover.1776581974.git.gye976@gmail.com>
@ 2026-05-07 14:00 ` Steven Price
  0 siblings, 0 replies; only message in thread
From: Steven Price @ 2026-05-07 14:00 UTC (permalink / raw)
  To: Gyeyoung Baek, Tomeu Vizoso, Boris Brezillon, Rob Herring,
	Adrián Larumbe
  Cc: Oded Gabbay, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, dri-devel, linux-kernel

On 19/04/2026 08:17, Gyeyoung Baek wrote:
> dma_resv_wait_timeout() returns a positive 'long' (remaining jiffies)
> on success, which is truncated to 'int`.
> So userspace interpret that as an error.
> 
> Each patch explicitly sets `ret` to 0 on the
> success path.
> 
> Gyeyoung Baek (2):
>   accel/rocket: Fix prep_bo ioctl leaking positive return from
>     dma_resv_wait_timeout()
>   drm/panfrost: Fix wait_bo ioctl leaking positive return from
>     dma_resv_wait_timeout()
> 
>  drivers/accel/rocket/rocket_gem.c       | 2 ++
>  drivers/gpu/drm/panfrost/panfrost_drv.c | 2 ++
>  2 files changed, 4 insertions(+)
> 

Both patches pushed to drm-misc-fixes.

Thanks,
Steve


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-07 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1776581974.git.gye976@gmail.com>
2026-05-07 14:00 ` [PATCH v1 0/2] Fix dma_resv_wait_timeout() return handling in rocket/panfrost ioctls Steven Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox