drm/i915/gvt: fix mem leakage in setup_vgpu_mmio for vgpu reset
authorDu, Changbin <changbin.du@intel.com>
Fri, 11 Nov 2016 02:31:37 +0000 (10:31 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 14 Nov 2016 10:06:43 +0000 (18:06 +0800)
commitf4b0c2860b530e06ddaa5b5df31ab4171ac6e9eb
treee531b0b485e1e41013bf8486ce480797cec0ad0c
parent0427f06aec4222e0712b2efba1ac60ff56a1c336
drm/i915/gvt: fix mem leakage in setup_vgpu_mmio for vgpu reset

Gvt gdrst handler handle_device_reset() invoke function
setup_vgpu_mmio() to reset mmio status. In this case,
the virtual mmio memory has been allocated already. The
new allocation just cause old mmio memory leakage.

Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/vgpu.c