Skip to content

Commit

Permalink
drm/i915/gvt/kvmgt: replace kmalloc() by kzalloc()
Browse files Browse the repository at this point in the history
Signed-off-by: Jike Song <jike.song@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
  • Loading branch information
Jike Song authored and Zhenyu Wang committed Dec 16, 2016
1 parent 9439b37 commit c55b1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gvt/kvmgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c55b1de

Please sign in to comment.