]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/net/ethernet/sfc/rx.c
sfc: Use kcalloc instead of kzalloc to allocate array
[mirror_ubuntu-zesty-kernel.git] / drivers / net / ethernet / sfc / rx.c
index 752d521c09b1a15400ada2d8ce6fce786f1c42c9..955b14956deb4fa1abcdf6c7d9b599b07d8be41e 100644 (file)
@@ -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 = kzalloc(entries * sizeof(*rx_queue->buffer),
+       rx_queue->buffer = kcalloc(entries, sizeof(*rx_queue->buffer),
                                   GFP_KERNEL);
        if (!rx_queue->buffer)
                return -ENOMEM;