mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drm/i915/gvt/kvmgt: replace kmalloc() by kzalloc()
Signed-off-by: Jike Song <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
This commit is contained in:
parent
9439b3710d
commit
c55b1de02d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue