[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080801224127.GA13731@c2.user-mode-linux.org>
Date: Fri, 1 Aug 2008 18:41:27 -0400
From: Jeff Dike <jdike@...toit.com>
To: stable@...nel.org
Cc: LKML <linux-kernel@...r.kernel.org>,
uml-devel <user-mode-linux-devel@...ts.sourceforge.net>,
Al Viro <viro@....linux.org.uk>
Subject: [PATCH 5/14] missed kmalloc() in pcap_user.c
>From 058ad32dc7765cde3717d3aaf5415724e5738128 Mon Sep 17 00:00:00 2001
From: Al Viro <viro@....linux.org.uk>
Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
Acked-by: Jeff Dike <jdike@...toit.com>
Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
---
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.5.1
--
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