cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers
SVN-Revision: 35943
This commit is contained in:
parent
c44506fcbd
commit
9facda9570
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ static void cns3xxx_alloc_rx_buf(struct sw *sw, int received)
|
||||||
unsigned int phys;
|
unsigned int phys;
|
||||||
|
|
||||||
for (received += rx_ring->alloc_count; received > 0; received--) {
|
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)
|
if (!buf)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue