um_kmalloc() remnants
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>
This commit is contained in:
Родитель
7155c9f576
Коммит
6d0fd9c983
|
@ -53,7 +53,7 @@ static int pcap_open(void *data)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
pri->compiled = um_kmalloc(sizeof(struct bpf_program));
|
pri->compiled = kmalloc(sizeof(struct bpf_program), 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");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче