projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
cns3xxx
/
files
/
drivers
/
net
/
ethernet
/
cavium
/
cns3xxx_eth.c
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 7309d9ea779cdc72d193a63b7d8c91d012721b0d..4bf7a9888ae4c67a1315696a2483fd171f3ea066 100644
(file)
--- 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--) {
unsigned int phys;
for (received += rx_ring->alloc_count; received > 0; received--) {
- buf = k
z
alloc(RX_SEGMENT_ALLOC_SIZE, GFP_ATOMIC);
+ buf = k
m
alloc(RX_SEGMENT_ALLOC_SIZE, GFP_ATOMIC);
if (!buf)
break;
if (!buf)
break;