From: Jike Song Date: Thu, 8 Dec 2016 03:00:34 +0000 (+0800) Subject: drm/i915/gvt/kvmgt: replace kmalloc() by kzalloc() X-Git-Tag: v4.14-rc1~1830^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c55b1de02d68e4343045391c0f4978c0bc5a9447;p=platform%2Fkernel%2Flinux-rpi3.git drm/i915/gvt/kvmgt: replace kmalloc() by kzalloc() Signed-off-by: Jike Song Signed-off-by: Zhenyu Wang --- diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index dc03650..aecb657 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;