Skip to content
Snippets Groups Projects
Commit 296cd66f authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

missed kmalloc() in pcap_user.c

parent 5cf11daf
Branches
Tags
No related merge requests found
...@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment