Skip to contentSkip to conversation

missed kmalloc() in pcap_user.c

PATCH New Al Viro 1 participant 1 message May 16, 2008 User-mode Linux (UML)

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 missed kmalloc() in pcap_user.c

---

arch/um/drivers/pcap_user.c +1 -1
index e980935..5f90358 100644
@@ -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");