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>
This commit is contained in:
parent
9439b3710d
commit
c55b1de02d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue