mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-09 08:06:43 +07:00
drivers: net: xgene: uninitialized variable in xgene_enet_free_pagepool()
We never set "slots" in this function.
Fixes: a9380b0f7b
("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>
This commit is contained in:
parent
635abf0191
commit
0b801290ea
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user