From: Al Viro Date: Wed, 21 May 2008 05:32:11 +0000 (+0100) Subject: missed kmalloc() in pcap_user.c X-Git-Tag: v2.6.26-rc4~88 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=296cd66f7f6e130fe08e6880ecb13c3fc615a8db;p=linux-2.6-omap-h63xx.git missed kmalloc() in pcap_user.c 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 e9809356c53..5f903587d69 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");