diff options
| author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2020-01-29 22:57:54 +0000 |
|---|---|---|
| committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2020-01-29 22:57:54 +0000 |
| commit | 0f248f6859a98ec766d7f2651065246ee90eb423 (patch) | |
| tree | c38e4e7caf9c6de0fb80043d250fa65700105f26 /sys/dev/netmap | |
| parent | b155cf987c189b6f380385c1341bd70c228ef486 (diff) | |
Notes
Diffstat (limited to 'sys/dev/netmap')
| -rw-r--r-- | sys/dev/netmap/netmap_mem2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/netmap/netmap_mem2.c b/sys/dev/netmap/netmap_mem2.c index 38a89fc8d7ec..80876ad5576e 100644 --- a/sys/dev/netmap/netmap_mem2.c +++ b/sys/dev/netmap/netmap_mem2.c @@ -1520,11 +1520,12 @@ static int netmap_mem_unmap(struct netmap_obj_pool *p, struct netmap_adapter *na) { int i, lim = p->objtotal; - struct netmap_lut *lut = &na->na_lut; + struct netmap_lut *lut; if (na == NULL || na->pdev == NULL) return 0; + lut = &na->na_lut; #if defined(__FreeBSD__) /* On FreeBSD mapping and unmapping is performed by the txsync * and rxsync routine, packet by packet. */ |
