X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fcns3xxx%2Ffiles%2Fdrivers%2Fnet%2Fethernet%2Fcavium%2Fcns3xxx_eth.c;fp=target%2Flinux%2Fcns3xxx%2Ffiles%2Fdrivers%2Fnet%2Fethernet%2Fcavium%2Fcns3xxx_eth.c;h=4bf7a9888ae4c67a1315696a2483fd171f3ea066;hp=7309d9ea779cdc72d193a63b7d8c91d012721b0d;hb=704c3504739aa722bf90f376a1b9365be12a6931;hpb=5e75d276528eecf52a4991a7b2f9ab25e7a16e26 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 7309d9ea77..4bf7a9888a 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;