Skip to contentSkip to conversation

PATCH: fix typo for page structure name

PATCH Michael Abd-El-Malek 1 participant 1 message Apr 13, 2008 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw
drivers/xen/blktap/blktap.c +1 -1
diff -r 5f49742fd697 drivers/xen/blktap/blktap.c
@@ -684,7 +684,7 @@ static int blktap_mmap(struct file *filp
 
 	/* Mark this VM as containing foreign pages, and set up mappings. */
 	map = kzalloc(((vma->vm_end - vma->vm_start) >> PAGE_SHIFT)
-		      * sizeof(struct page_struct*),
+		      * sizeof(struct page*),
 		      GFP_KERNEL);
 	if (map == NULL) {
 		WPRINTK("Couldn't alloc VM_FOREIGN map.\n");
drivers/xen/gntdev/gntdev.c +1 -2
diff -r 5f49742fd697 drivers/xen/gntdev/gntdev.c
@@ -509,8 +509,7 @@ static int gntdev_mmap (struct file *fli
     
 	/* The VM area contains pages from another VM. */
 	vma->vm_flags |= VM_FOREIGN;
-	vma->vm_private_data = kzalloc(size * sizeof(struct page_struct *), 
-				       GFP_KERNEL);
+	vma->vm_private_data = kzalloc(size * sizeof(struct page*), GFP_KERNEL);
 	if (vma->vm_private_data == NULL) {
 		printk(KERN_ERR "Couldn't allocate mapping structure for VM "
 		       "area.\n");

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel