Skip to content

Commit

Permalink
KVM: cleanup "*new.rmap" type
Browse files Browse the repository at this point in the history
The type of '*new.rmap' is not 'struct page *', fix it

Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
Lai Jiangshan authored and avikivity committed Aug 1, 2010
1 parent 4bc9b98 commit 3bd8900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
/* Allocate if a slot is being created */
#ifndef CONFIG_S390
if (npages && !new.rmap) {
new.rmap = vmalloc(npages * sizeof(struct page *));
new.rmap = vmalloc(npages * sizeof(*new.rmap));

if (!new.rmap)
goto out_free;
Expand Down

0 comments on commit 3bd8900

Please sign in to comment.