From e6c6eae8f6cac836255ebb05b97775e2ace129b2 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 6 Feb 2024 03:15:49 +0000 Subject: [PATCH] drm/drm_file: fix use of uninitialized variable From Tomi Valkeinen 2cde325e185b43accae56a23c18b2e735245197a in linux-6.6.y/6.6.16 1d3062fad9c7313fff9970a88e0538a24480ffb8 in mainline linux --- sys/dev/pci/drm/drm_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1