提交 296cd66f 编写于 作者: A Al Viro 提交者: Linus Torvalds

missed kmalloc() in pcap_user.c

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Acked-by: NJeff Dike <jdike@addtoit.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 5cf11daf
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册