Skip to content

Commit

Permalink
missed kmalloc() in pcap_user.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed May 21, 2008
1 parent 5cf11da commit 296cd66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/pcap_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 296cd66

Please sign in to comment.