bpf: Fix an unitialized value in bpf_iter
[linux-2.6-microblaze.git] / kernel / bpf / bpf_iter.c
index 5454161..a0d9ead 100644 (file)
@@ -287,7 +287,7 @@ int bpf_iter_reg_target(const struct bpf_iter_reg *reg_info)
 {
        struct bpf_iter_target_info *tinfo;
 
-       tinfo = kmalloc(sizeof(*tinfo), GFP_KERNEL);
+       tinfo = kzalloc(sizeof(*tinfo), GFP_KERNEL);
        if (!tinfo)
                return -ENOMEM;