mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 15:28:18 +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> (cherry picked from commit109af1b077) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
This commit is contained in:
parent
5ec344df2c
commit
4086191ee2
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue