Bug #1714 » source-netmap.c.diff
source-netmap.c.orig → source-netmap.c | ||
---|---|---|
pdev->ref--;
|
||
if (!pdev->ref) {
|
||
munmap(pdev->mem, pdev->memsize);
|
||
for (int i = 0; i <= pdev->rings_cnt; i++) {
|
||
for (int i = pdev->rings_cnt; i >= 0; i--) {
|
||
NetmapRing *pring = &pdev->rings[i];
|
||
close(pring->fd);
|
||
SCSpinDestroy(&pring->tx_lock);
|