]> www.infradead.org Git - nvme.git/commit
drm/panthor: Don't check the array stride on empty uobj arrays
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Jul 2024 07:16:39 +0000 (09:16 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Jul 2024 07:45:35 +0000 (09:45 +0200)
commit1a9a71439cc1b270bf127c2f529aac7cf9cb21ab
tree39870acd549dc38f3e10056e9fccca3b8b26b5ef
parent704c1bef3aa44f82500cab27267ce338e188a340
drm/panthor: Don't check the array stride on empty uobj arrays

The user is likely to leave all the drm_panthor_obj_array fields
to zero when the array is empty, which will cause an EINVAL failure.

v2:
- Added R-bs

Fixes: 4bdca1150792 ("drm/panthor: Add the driver frontend block")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240703071640.231278-2-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_drv.c