diff options
author | Zhao Yan <yan.y.zhao@intel.com> | 2017-02-21 09:00:37 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-02-23 12:32:16 +0300 |
commit | ec162aa84c9057e196f3a844c0a8d569f5095e6c (patch) | |
tree | 3aec99279719c30872b6220f702cc7d584c8f9a1 /drivers/gpu/drm/i915/gvt/firmware.c | |
parent | 187447a106fc9caca45f10413845678d3666556c (diff) | |
download | linux-ec162aa84c9057e196f3a844c0a8d569f5095e6c.tar.xz |
drm/i915/gvt: set default value to 0 for unhandled mmio regs
for a handled mmio reg, its default value is read from hardware, while
for an unhandled mmio regs, its default value would be random if not
explicitly set to 0
Signed-off-by: Zhao Yan <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/firmware.c')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/firmware.c b/drivers/gpu/drm/i915/gvt/firmware.c index 1cb29b2d7dc6..933a7c211a1c 100644 --- a/drivers/gpu/drm/i915/gvt/firmware.c +++ b/drivers/gpu/drm/i915/gvt/firmware.c @@ -80,7 +80,7 @@ static int expose_firmware_sysfs(struct intel_gvt *gvt) int ret; size = sizeof(*h) + info->mmio_size + info->cfg_space_size - 1; - firmware = vmalloc(size); + firmware = vzalloc(size); if (!firmware) return -ENOMEM; |