git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sfc: Use kcalloc instead of kzalloc to allocate array
[pandora-kernel.git]
/
drivers
/
net
/
ethernet
/
sfc
/
rx.c
diff --git
a/drivers/net/ethernet/sfc/rx.c
b/drivers/net/ethernet/sfc/rx.c
index
752d521
..
955b149
100644
(file)
--- a/
drivers/net/ethernet/sfc/rx.c
+++ b/
drivers/net/ethernet/sfc/rx.c
@@
-669,7
+669,7
@@
int efx_probe_rx_queue(struct efx_rx_queue *rx_queue)
rx_queue->ptr_mask);
/* Allocate RX buffers */
- rx_queue->buffer = k
zalloc(entries *
sizeof(*rx_queue->buffer),
+ rx_queue->buffer = k
calloc(entries,
sizeof(*rx_queue->buffer),
GFP_KERNEL);
if (!rx_queue->buffer)
return -ENOMEM;