projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/net: Convert unbounded kzalloc calls to kcalloc
[deliverable/linux.git]
/
drivers
/
net
/
mlx4
/
profile.c
diff --git
a/drivers/net/mlx4/profile.c
b/drivers/net/mlx4/profile.c
index 5caf0115fa5b4e923e3d10d760c6c1284a21c694..e749f82865fee073175182b5451d683dd2ba1707 100644
(file)
--- a/
drivers/net/mlx4/profile.c
+++ b/
drivers/net/mlx4/profile.c
@@
-85,7
+85,7
@@
u64 mlx4_make_profile(struct mlx4_dev *dev,
struct mlx4_resource tmp;
int i, j;
- profile = k
zalloc(MLX4_RES_NUM * sizeof *profile
, GFP_KERNEL);
+ profile = k
calloc(MLX4_RES_NUM, sizeof(*profile)
, GFP_KERNEL);
if (!profile)
return -ENOMEM;
This page took
0.025413 seconds
and
5
git commands to generate.