diff options
Diffstat (limited to 'drivers/atm/lanai.c')
-rw-r--r-- | drivers/atm/lanai.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index e828c5487493..f5569699f31c 100644 --- a/drivers/atm/lanai.c +++ b/drivers/atm/lanai.c | |||
@@ -1457,10 +1457,9 @@ static int __devinit vcc_table_allocate(struct lanai_dev *lanai) | |||
1457 | return (lanai->vccs == NULL) ? -ENOMEM : 0; | 1457 | return (lanai->vccs == NULL) ? -ENOMEM : 0; |
1458 | #else | 1458 | #else |
1459 | int bytes = (lanai->num_vci) * sizeof(struct lanai_vcc *); | 1459 | int bytes = (lanai->num_vci) * sizeof(struct lanai_vcc *); |
1460 | lanai->vccs = (struct lanai_vcc **) vmalloc(bytes); | 1460 | lanai->vccs = vzalloc(bytes); |
1461 | if (unlikely(lanai->vccs == NULL)) | 1461 | if (unlikely(lanai->vccs == NULL)) |
1462 | return -ENOMEM; | 1462 | return -ENOMEM; |
1463 | memset(lanai->vccs, 0, bytes); | ||
1464 | return 0; | 1463 | return 0; |
1465 | #endif | 1464 | #endif |
1466 | } | 1465 | } |