diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-03-10 18:25:20 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-03-10 18:25:20 +0000 |
commit | 4ee7264df852b9ecd12b47b46633f3a1ad748c37 (patch) | |
tree | b6b14c4d359a3542e532d280ad425c3208bb5ef3 /target/linux/cns3xxx/files/drivers/net | |
parent | 7b0d07de1c30c5f8f4030c296717c9f86872b190 (diff) |
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
Diffstat (limited to 'target/linux/cns3xxx/files/drivers/net')
-rw-r--r-- | target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c index 7309d9ea7..4bf7a9888 100644 --- a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c +++ b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c @@ -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; |