diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-12-07 14:14:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-08 19:27:46 +0300 |
commit | 0b801290ea9468a3ed9577281afdb458001ce0d1 (patch) | |
tree | 79b0934df57c6e236703ba97351738f876122c70 /drivers/net/ethernet/apm/xgene | |
parent | 635abf01918157e61dc9cfdfd70c40bd5957b6a3 (diff) | |
download | linux-0b801290ea9468a3ed9577281afdb458001ce0d1.tar.xz |
drivers: net: xgene: uninitialized variable in xgene_enet_free_pagepool()
We never set "slots" in this function.
Fixes: a9380b0f7be8 ("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>
Diffstat (limited to 'drivers/net/ethernet/apm/xgene')
-rw-r--r-- | drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 6c7eea8b36af..884a334e82d0 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -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++) { |