mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
missed kmalloc() in pcap_user.c
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:
parent
5cf11daf9a
commit
296cd66f7f
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue