From 4086191ee2ab4c0506d5c3518888df8297210889 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 (cherry picked from commit 109af1b077a7ff52b22830848ea7d88fedd28d75) Part-of: --- .pick_status.json | 2 +- src/panfrost/lib/kmod/panthor_kmod.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 07df39f549f..2ec52e3b7b3 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2264,7 +2264,7 @@ "description": "pan/kmod: Fix uninitialized timestamp info", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "302127fe9dc725f80fb242f5666279bedef921c3", "notes": null diff --git a/src/panfrost/lib/kmod/panthor_kmod.c b/src/panfrost/lib/kmod/panthor_kmod.c index 2e26880868a..6c2e8d0b7e8 100644 --- a/src/panfrost/lib/kmod/panthor_kmod.c +++ b/src/panfrost/lib/kmod/panthor_kmod.c @@ -1262,7 +1262,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,