summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-02-06 03:15:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-02-06 03:15:50 +0000
commit703140e8478cdd6825137ab8f946826c6e58b2b5 (patch)
tree97504e5768acdbb5f084eb1439977d3e3d161640
parent53ae7181c09941e30954c1eb519040344f7393a6 (diff)
drm/drm_file: fix use of uninitialized variable
From Tomi Valkeinen 2cde325e185b43accae56a23c18b2e735245197a in linux-6.6.y/6.6.16 1d3062fad9c7313fff9970a88e0538a24480ffb8 in mainline linux
-rw-r--r--sys/dev/pci/drm/drm_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_file.c b/sys/dev/pci/drm/drm_file.c
index d3edc2c4e7e..1920e89d657 100644
--- a/sys/dev/pci/drm/drm_file.c
+++ b/sys/dev/pci/drm/drm_file.c
@@ -994,7 +994,7 @@ void drm_show_memory_stats(struct drm_printer *p, struct drm_file *file)
{
struct drm_gem_object *obj;
struct drm_memory_stats status = {};
- enum drm_gem_object_status supported_status;
+ enum drm_gem_object_status supported_status = 0;
int id;
spin_lock(&file->table_lock);