Skip to contentSkip to conversation

missed kmalloc() in vde_user.c

PATCH New Luca Bigliardi 1 participant 1 message Jul 20, 2008 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missed kmalloc() in vde_user.c

Hi,
I'm attaching a patch for 2.6.26.

missed kmalloc() in vde_user.c

luca

Signature · 4 lines
Beware of programmers who carry screwdrivers.
                        -- Leonard Brandwein

http://www.artha.org/ - http://www.yue.it/
arch/um/drivers/vde_user.c +1 -1
index 56533db..744eacf 100644
@@ -78,7 +78,7 @@ void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init)
 {
 	struct vde_open_args *args;
 
-	vpri->args = kmalloc(sizeof(struct vde_open_args), UM_GFP_KERNEL);
+	vpri->args = uml_kmalloc(sizeof(struct vde_open_args), UM_GFP_KERNEL);
 	if (vpri->args == NULL) {
 		printk(UM_KERN_ERR "vde_init_libstuff - vde_open_args "
 		       "allocation failed");

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel