All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH] missed kmalloc() in vde_user.c
@ 2008-07-20 14:39 Luca Bigliardi
  0 siblings, 0 replies; only message in thread
From: Luca Bigliardi @ 2008-07-20 14:39 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]


Hi,
I'm attaching a patch for 2.6.26.


missed kmalloc() in vde_user.c

Signed-off-by: Luca Bigliardi <shammash@artha.org>



luca

-- 
Beware of programmers who carry screwdrivers.
                        -- Leonard Brandwein

http://www.artha.org/ - http://www.yue.it/

[-- Attachment #2: kmalloc-vde_user.diff --]
[-- Type: text/x-diff, Size: 548 bytes --]

diff --git a/arch/um/drivers/vde_user.c b/arch/um/drivers/vde_user.c
index 56533db..744eacf 100644
--- a/arch/um/drivers/vde_user.c
+++ b/arch/um/drivers/vde_user.c
@@ -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");

[-- Attachment #3: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
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=/

[-- Attachment #4: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-20 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 14:39 [uml-devel] [PATCH] missed kmalloc() in vde_user.c Luca Bigliardi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.