mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
4714395eb8
commit
109af1b077
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue