Free vsi->queues after use.
Differential Revision: D2344 Reviewed by: erj
This commit is contained in:
parent
3f67197271
commit
3d6b500ff9
@ -1693,7 +1693,6 @@ ixlv_setup_queues(struct ixlv_sc *sc)
|
||||
return (0);
|
||||
|
||||
fail:
|
||||
free(vsi->queues, M_DEVBUF);
|
||||
for (int i = 0; i < vsi->num_queues; i++) {
|
||||
que = &vsi->queues[i];
|
||||
rxr = &que->rxr;
|
||||
@ -1703,6 +1702,7 @@ fail:
|
||||
if (txr->base)
|
||||
i40e_free_dma_mem(&sc->hw, &txr->dma);
|
||||
}
|
||||
free(vsi->queues, M_DEVBUF);
|
||||
|
||||
early:
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user