From: jsg Date: Mon, 19 Feb 2024 01:48:23 +0000 (+0000) Subject: drm/i915/gvt: Fix uninitialized variable in handle_mmio() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cc7c299056f99e7af56a945ec499f8804f85a826;p=openbsd 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 --- 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