diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-19 01:48:24 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-19 01:48:24 +0000 |
commit | d950f6c8ffc05700b07cd02b467e14c35fc4f90b (patch) | |
tree | ce95871e6e61006dd1890916754341f81a21b3fc | |
parent | 36fb9e16ebe3303baa3e1a0497a9f05de07f71cf (diff) |
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
-rw-r--r-- | sys/dev/pci/drm/i915/gvt/handlers.c | 3 |
1 files changed, 1 insertions, 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 |