summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJike Song <jike.song@intel.com>2016-12-08 04:00:34 +0100
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-12-16 09:55:25 +0100
commitc55b1de02d68e4343045391c0f4978c0bc5a9447 (patch)
tree385009cb21abfbbb9b9dc43c1efbb2a7aee7e3ec /drivers/gpu
parentMerge tag 'drm-for-v4.10' of git://people.freedesktop.org/~airlied/linux (diff)
downloadlinux-c55b1de02d68e4343045391c0f4978c0bc5a9447.tar.xz
linux-c55b1de02d68e4343045391c0f4978c0bc5a9447.zip
drm/i915/gvt/kvmgt: replace kmalloc() by kzalloc()
Signed-off-by: Jike Song <jike.song@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/gvt/kvmgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c
index dc0365033157..aecb657d8b99 100644
--- a/drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
@@ -322,7 +322,7 @@ static void kvmgt_protect_table_add(struct kvmgt_guest_info *info, gfn_t gfn)
if (kvmgt_gfn_is_write_protected(info, gfn))
return;
- p = kmalloc(sizeof(struct kvmgt_pgfn), GFP_ATOMIC);
+ p = kzalloc(sizeof(struct kvmgt_pgfn), GFP_ATOMIC);
if (WARN(!p, "gfn: 0x%llx\n", gfn))
return;