[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080516205840.GV13907@ZenIV.linux.org.uk>
Date: Fri, 16 May 2008 21:58:40 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Jeff Dike <jdike@...toit.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] missed kmalloc() in pcap_user.c
Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
Acked-by: Jeff Dike <jdike@...toit.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");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists