* [PATCH] missed kmalloc() in pcap_user.c
@ 2008-05-16 20:58 Al Viro
0 siblings, 0 replies; only message in thread
From: Al Viro @ 2008-05-16 20:58 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Jeff Dike, linux-kernel
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Dike <jdike@addtoit.com>
---
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");
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-16 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 20:58 [PATCH] missed kmalloc() in pcap_user.c Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox