pan/kmod: Fix uninitialized timestamp info

The kernel looks at drm_panthor_timestamp_info::flags, so it can't be
uninitialized.

Fixes: 302127fe ("pan/kmod: Add timestamp uapi support")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41418>
This commit is contained in:
Christoph Pillmayer 2026-05-07 12:59:28 +02:00 committed by Marge Bot
parent 4714395eb8
commit 109af1b077

View file

@ -1261,7 +1261,7 @@ panthor_kmod_query_timestamp(const struct pan_kmod_dev *dev)
if (!pan_kmod_driver_version_at_least(&dev->driver, 1, 1))
return 0;
struct drm_panthor_timestamp_info timestamp_info;
struct drm_panthor_timestamp_info timestamp_info = {};
struct drm_panthor_dev_query query = (struct drm_panthor_dev_query){
.type = DRM_PANTHOR_DEV_QUERY_TIMESTAMP_INFO,