Re: [PATCH 4/7] drm/syncobj: Use put_user in drm_syncobj_query_ioctl

2025-03-24 Thread MaĆ­ra Canal
Hi Tvrtko, On 18/03/25 12:54, Tvrtko Ursulin wrote: Since the query loop is using copy_to_user() to write out a single u64 at a time it feels more natural (and is a tiny bit more compact) to replace it with put_user(). Access_ok() check is added to the input checking for an early bailout in cas

[PATCH 4/7] drm/syncobj: Use put_user in drm_syncobj_query_ioctl

2025-03-18 Thread Tvrtko Ursulin
Since the query loop is using copy_to_user() to write out a single u64 at a time it feels more natural (and is a tiny bit more compact) to replace it with put_user(). Access_ok() check is added to the input checking for an early bailout in case of a bad buffer passed in. Signed-off-by: Tvrtko Urs

[PATCH 4/7] drm/syncobj: Use put_user in drm_syncobj_query_ioctl

2025-01-06 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since the query loop is using copy_to_user() to write out a single u64 at a time it feels more natural (and is a tiny bit more compact) to replace it with put_user(). Access_ok() check is added to the input checking for an early bailout in case of a bad buffer passed in. Si