kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvm: cleanup, fix typing
@ 2010-06-02  9:01 Lai Jiangshan
  2010-06-02 17:31 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Lai Jiangshan @ 2010-06-02  9:01 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti, kvm

The type of '*new.rmap' is not 'struct page *', fix it

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 9ab1a77..cab7839 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -596,7 +596,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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm: cleanup, fix typing
  2010-06-02  9:01 [PATCH] kvm: cleanup, fix typing Lai Jiangshan
@ 2010-06-02 17:31 ` Marcelo Tosatti
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2010-06-02 17:31 UTC (permalink / raw)
  To: Lai Jiangshan; +Cc: Avi Kivity, kvm

On Wed, Jun 02, 2010 at 05:01:23PM +0800, Lai Jiangshan wrote:
> The type of '*new.rmap' is not 'struct page *', fix it
> 
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>

Applied this and uaccess cleanup, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-02 17:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02  9:01 [PATCH] kvm: cleanup, fix typing Lai Jiangshan
2010-06-02 17:31 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).