Skip to content

Commit

Permalink
drivers: net: xgene: uninitialized variable in xgene_enet_free_pagepo…
Browse files Browse the repository at this point in the history
…ol()

We never set "slots" in this function.

Fixes: a9380b0 ("drivers: net: xgene: Add support for Jumbo frame")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Dec 8, 2016
1 parent 635abf0 commit 0b80129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/apm/xgene/xgene_enet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ static void xgene_enet_free_pagepool(struct xgene_enet_desc_ring *buf_pool,
return;

dev = ndev_to_dev(buf_pool->ndev);
slots = buf_pool->slots - 1;
head = buf_pool->head;

for (i = 0; i < 4; i++) {
Expand Down

0 comments on commit 0b80129

Please sign in to comment.