diff options
Diffstat (limited to 'drivers/net/myri10ge')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index fb2c0927d3cc..24ab8a43c777 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -3753,8 +3753,8 @@ static void myri10ge_probe_slices(struct myri10ge_priv *mgp) | |||
3753 | * slices. We give up on MSI-X if we can only get a single | 3753 | * slices. We give up on MSI-X if we can only get a single |
3754 | * vector. */ | 3754 | * vector. */ |
3755 | 3755 | ||
3756 | mgp->msix_vectors = kzalloc(mgp->num_slices * | 3756 | mgp->msix_vectors = kcalloc(mgp->num_slices, sizeof(*mgp->msix_vectors), |
3757 | sizeof(*mgp->msix_vectors), GFP_KERNEL); | 3757 | GFP_KERNEL); |
3758 | if (mgp->msix_vectors == NULL) | 3758 | if (mgp->msix_vectors == NULL) |
3759 | goto disable_msix; | 3759 | goto disable_msix; |
3760 | for (i = 0; i < mgp->num_slices; i++) { | 3760 | for (i = 0; i < mgp->num_slices; i++) { |