]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
missed kmalloc() in pcap_user.c
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 21 May 2008 05:32:11 +0000 (06:32 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 May 2008 23:55:57 +0000 (16:55 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/pcap_user.c

index e9809356c5305408e702a70e43bb8652d193c8b9..5f903587d69e4ae322672270c0bba17d2ec41295 100644 (file)
@@ -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");