aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/qlcnic')
-rw-r--r--drivers/net/qlcnic/qlcnic_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index 3f970187cfce..c5ea2f4eb980 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -274,8 +274,7 @@ int qlcnic_alloc_sw_resources(struct qlcnic_adapter *adapter)
274 rds_ring->dma_size + NET_IP_ALIGN; 274 rds_ring->dma_size + NET_IP_ALIGN;
275 break; 275 break;
276 } 276 }
277 rds_ring->rx_buf_arr = (struct qlcnic_rx_buffer *) 277 rds_ring->rx_buf_arr = vzalloc(RCV_BUFF_RINGSIZE(rds_ring));
278 vzalloc(RCV_BUFF_RINGSIZE(rds_ring));
279 if (rds_ring->rx_buf_arr == NULL) { 278 if (rds_ring->rx_buf_arr == NULL) {
280 dev_err(&netdev->dev, "Failed to allocate " 279 dev_err(&netdev->dev, "Failed to allocate "
281 "rx buffer ring %d\n", ring); 280 "rx buffer ring %d\n", ring);