From cc7c299056f99e7af56a945ec499f8804f85a826 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 19 Feb 2024 01:48:23 +0000 Subject: [PATCH] drm/i915/gvt: Fix uninitialized variable in handle_mmio() From Dan Carpenter 41d5340cb01e1b076ae4d58cb91da9552bac64c4 in linux-6.6.y/6.6.17 47caa96478b99d6d1199b89467cc3e5a6cc754ee in mainline linux --- sys/dev/pci/drm/i915/gvt/handlers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/i915/gvt/handlers.c b/sys/dev/pci/drm/i915/gvt/handlers.c index a9f7fa9b90b..d30f8814d9b 100644 --- a/sys/dev/pci/drm/i915/gvt/handlers.c +++ b/sys/dev/pci/drm/i915/gvt/handlers.c @@ -2850,8 +2850,7 @@ static int handle_mmio(struct intel_gvt_mmio_table_iter *iter, u32 offset, for (i = start; i < end; i += 4) { p = intel_gvt_find_mmio_info(gvt, i); if (p) { - WARN(1, "dup mmio definition offset %x\n", - info->offset); + WARN(1, "dup mmio definition offset %x\n", i); /* We return -EEXIST here to make GVT-g load fail. * So duplicated MMIO can be found as soon as -- 2.20.1