All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6][uml] missed kmalloc() in pcap_user.c
@ 2008-05-21  0:48 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2008-05-21  0:48 UTC (permalink / raw)
  To: torvalds; +Cc: jdike, linux-kernel


Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Dike <jdike@addtoit.com>
---
 arch/um/drivers/pcap_user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/um/drivers/pcap_user.c b/arch/um/drivers/pcap_user.c
index e980935..5f90358 100644
--- a/arch/um/drivers/pcap_user.c
+++ b/arch/um/drivers/pcap_user.c
@@ -50,7 +50,7 @@ static int pcap_open(void *data)
 			return -EIO;
 		}
 
-		pri->compiled = kmalloc(sizeof(struct bpf_program),
+		pri->compiled = uml_kmalloc(sizeof(struct bpf_program),
 					UM_GFP_KERNEL);
 		if (pri->compiled == NULL) {
 			printk(UM_KERN_ERR "pcap_open : kmalloc failed\n");
-- 
1.5.3.GIT



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

only message in thread, other threads:[~2008-05-21  0:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21  0:48 [PATCH 1/6][uml] missed kmalloc() in pcap_user.c Al Viro

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.