From: Al Viro Date: Tue, 17 Jul 2007 07:49:35 +0000 (+0100) Subject: um_kmalloc() remnants X-Git-Tag: v2.6.23-rc1~525 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d0fd9c9832005b754d7cd04bc8c0ce7ea035366;p=platform%2Fupstream%2Fkernel-adaptation-pc.git um_kmalloc() remnants Signed-off-by: Al Viro Acked-by: Jeff Dike Signed-off-by: Linus Torvalds --- diff --git a/arch/um/drivers/pcap_user.c b/arch/um/drivers/pcap_user.c index 483aa15..1316456 100644 --- a/arch/um/drivers/pcap_user.c +++ b/arch/um/drivers/pcap_user.c @@ -53,7 +53,7 @@ static int pcap_open(void *data) return -EIO; } - pri->compiled = um_kmalloc(sizeof(struct bpf_program)); + pri->compiled = kmalloc(sizeof(struct bpf_program), UM_GFP_KERNEL); if(pri->compiled == NULL){ printk(UM_KERN_ERR "pcap_open : kmalloc failed\n"); return -ENOMEM;