From 109af1b077a7ff52b22830848ea7d88fedd28d75 Mon Sep 17 00:00:00 2001 From: Christoph Pillmayer Date: Thu, 7 May 2026 12:59:28 +0200 Subject: [PATCH] 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 Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/lib/kmod/panthor_kmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/kmod/panthor_kmod.c b/src/panfrost/lib/kmod/panthor_kmod.c index c2e774eab87..58e5d67032a 100644 --- a/src/panfrost/lib/kmod/panthor_kmod.c +++ b/src/panfrost/lib/kmod/panthor_kmod.c @@ -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,