[PATCH 1/6][uml] missed kmalloc() in pcap_user.c

Previous thread: [PATCHES] uml fixes by Al Viro on Tuesday, May 20, 2008 - 5:48 pm. (1 message)

Next thread: [PATCH 2/6][uml] fix include order in sys-i386/registers.c by Al Viro on Tuesday, May 20, 2008 - 5:48 pm. (1 message)
From: Al Viro
Date: Tuesday, May 20, 2008 - 5:48 pm

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


--

Previous thread: [PATCHES] uml fixes by Al Viro on Tuesday, May 20, 2008 - 5:48 pm. (1 message)

Next thread: [PATCH 2/6][uml] fix include order in sys-i386/registers.c by Al Viro on Tuesday, May 20, 2008 - 5:48 pm. (1 message)