aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea_main.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-11-21 19:15:06 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-28 01:53:38 -0500
commit89bf67f1f080c947c92f8773482d9e57767ca292 (patch)
treeae492f5f31a32a4f838778cd34320da0bedf9dfd /drivers/net/ehea/ehea_main.c
parentfe6d2a38b2076cba515dc95b5dc1589a7ab51c17 (diff)
drivers/net: use vzalloc()
Use vzalloc() and vzalloc_node() in net drivers Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Jon Mason <jon.mason@exar.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r--drivers/net/ehea/ehea_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 182b2a7be8dc..a84c389d3db7 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -1496,12 +1496,10 @@ static int ehea_init_q_skba(struct ehea_q_skb_arr *q_skba, int max_q_entries)
1496{ 1496{
1497 int arr_size = sizeof(void *) * max_q_entries; 1497 int arr_size = sizeof(void *) * max_q_entries;
1498 1498
1499 q_skba->arr = vmalloc(arr_size); 1499 q_skba->arr = vzalloc(arr_size);
1500 if (!q_skba->arr) 1500 if (!q_skba->arr)
1501 return -ENOMEM; 1501 return -ENOMEM;
1502 1502
1503 memset(q_skba->arr, 0, arr_size);
1504
1505 q_skba->len = max_q_entries; 1503 q_skba->len = max_q_entries;
1506 q_skba->index = 0; 1504 q_skba->index = 0;
1507 q_skba->os_skbs = 0; 1505 q_skba->os_skbs = 0;