bpf: Switch to krealloc_array()
[linux-2.6-block.git] / kernel / bpf / core.c
index a8ca6dd6e614be55f3840bff1bf25801d913cc87..99b8b1c9a248ca43bed5717e40b933a730ce61fc 100644 (file)
@@ -850,7 +850,7 @@ int bpf_jit_add_poke_descriptor(struct bpf_prog *prog,
                return -EINVAL;
        }
 
-       tab = krealloc(tab, size * sizeof(*poke), GFP_KERNEL);
+       tab = krealloc_array(tab, size, sizeof(*poke), GFP_KERNEL);
        if (!tab)
                return -ENOMEM;