Commit 296cd66f authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

missed kmalloc() in pcap_user.c

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5cf11daf
...@@ -50,7 +50,7 @@ static int pcap_open(void *data) ...@@ -50,7 +50,7 @@ static int pcap_open(void *data)
return -EIO; return -EIO;
} }
pri->compiled = kmalloc(sizeof(struct bpf_program), pri->compiled = uml_kmalloc(sizeof(struct bpf_program),
UM_GFP_KERNEL); UM_GFP_KERNEL);
if (pri->compiled == NULL) { if (pri->compiled == NULL) {
printk(UM_KERN_ERR "pcap_open : kmalloc failed\n"); printk(UM_KERN_ERR "pcap_open : kmalloc failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment