mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
netmap: fix bug introduced by r349752
r349752 introduced a NULL pointer reference bug in the emulated netmap code. Reported by: lwhsu MFC after: 3 days
This commit is contained in:
parent
07b57507c9
commit
d7143780ce
1 changed files with 2 additions and 1 deletions
|
|
@ -1126,7 +1126,8 @@ generic_netmap_attach(struct ifnet *ifp)
|
|||
|
||||
nm_os_generic_set_features(gna);
|
||||
|
||||
nm_prinf("Emulated adapter for %s created (prev was %s)", na->name, gna->prev->name);
|
||||
nm_prinf("Emulated adapter for %s created (prev was %s)", na->name,
|
||||
gna->prev ? gna->prev->name : "NULL");
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue