]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/mlx4/profile.c
drivers/net: Convert unbounded kzalloc calls to kcalloc
[net-next-2.6.git] / drivers / net / mlx4 / profile.c
index 5caf0115fa5b4e923e3d10d760c6c1284a21c694..e749f82865fee073175182b5451d683dd2ba1707 100644 (file)
@@ -85,7 +85,7 @@ u64 mlx4_make_profile(struct mlx4_dev *dev,
        struct mlx4_resource tmp;
        int i, j;
 
-       profile = kzalloc(MLX4_RES_NUM * sizeof *profile, GFP_KERNEL);
+       profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL);
        if (!profile)
                return -ENOMEM;