drm/drm_file: fix use of uninitialized variable
authorjsg <jsg@openbsd.org>
Tue, 6 Feb 2024 03:15:49 +0000 (03:15 +0000)
committerjsg <jsg@openbsd.org>
Tue, 6 Feb 2024 03:15:49 +0000 (03:15 +0000)
From Tomi Valkeinen
2cde325e185b43accae56a23c18b2e735245197a in linux-6.6.y/6.6.16
1d3062fad9c7313fff9970a88e0538a24480ffb8 in mainline linux

sys/dev/pci/drm/drm_file.c

index d3edc2c..1920e89 100644 (file)
@@ -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);