Skip to content
Snippets Groups Projects
Commit 9facda95 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers

SVN-Revision: 35943
parent c44506fc
No related branches found
No related tags found
No related merge requests found
......@@ -514,7 +514,7 @@ static void cns3xxx_alloc_rx_buf(struct sw *sw, int received)
unsigned int phys;
for (received += rx_ring->alloc_count; received > 0; received--) {
buf = kzalloc(RX_SEGMENT_ALLOC_SIZE, GFP_ATOMIC);
buf = kmalloc(RX_SEGMENT_ALLOC_SIZE, GFP_ATOMIC);
if (!buf)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment