mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35943 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user