mirror-linux/drivers/gpu/drm/panthor
Su Hui 3b32b7f638 drm/panthor: avoid garbage value in panthor_ioctl_dev_query()
'priorities_info' is uninitialized, and the uninitialized value is copied
to user object when calling PANTHOR_UOBJ_SET(). Using memset to initialize
'priorities_info' to avoid this garbage value problem.

Fixes: f70000ef23 ("drm/panthor: Add DEV_QUERY_GROUP_PRIORITIES_INFO dev query")
Signed-off-by: Su Hui <suhui@nfschina.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250119025828.1168419-1-suhui@nfschina.com
2025-02-07 17:31:59 +01:00
..
Kconfig
Makefile
panthor_devfreq.c drm/panthor: Ignore devfreq_{suspend, resume}_device() failures 2024-12-11 10:03:59 +01:00
panthor_devfreq.h drm/panthor: Ignore devfreq_{suspend, resume}_device() failures 2024-12-11 10:03:59 +01:00
panthor_device.c drm/panthor: Fix the fast-reset logic 2024-12-11 10:04:12 +01:00
panthor_device.h drm/panthor: Fix the fast-reset logic 2024-12-11 10:04:12 +01:00
panthor_drv.c drm/panthor: avoid garbage value in panthor_ioctl_dev_query() 2025-02-07 17:31:59 +01:00
panthor_fw.c drm/panthor: Fix the fast-reset logic 2024-12-11 10:04:12 +01:00
panthor_fw.h
panthor_gem.c Backmerge v6.12-rc6 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2024-11-04 14:25:33 +10:00
panthor_gem.h
panthor_gpu.c drm/panthor: Fix the fast-reset logic 2024-12-11 10:04:12 +01:00
panthor_gpu.h drm/panthor: Add DEV_QUERY_TIMESTAMP_INFO dev query 2024-09-05 09:38:17 +02:00
panthor_heap.c
panthor_heap.h
panthor_mmu.c drm/panthor: Be robust against runtime PM resume failures in the suspend path 2024-12-11 10:03:54 +01:00
panthor_mmu.h drm/panthor: Fix firmware initialization on systems with a page size > 4k 2024-10-30 16:30:21 +01:00
panthor_regs.h
panthor_sched.c drm/panthor: Report innocent group kill 2024-12-17 10:56:12 +01:00
panthor_sched.h drm/panthor: add DRM fdinfo support 2024-10-02 10:55:17 +02:00