Fix regression from r353841: ctx.rc needs to be initialized,

otherwise driver might silently fail to initialize.

Pointy hat to:	glebius
This commit is contained in:
Gleb Smirnoff 2019-11-15 18:02:37 +00:00
parent dc3c6ad63c
commit 782b97cb80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354737

View File

@ -4998,6 +4998,7 @@ update_mac_settings(struct ifnet *ifp, int flags)
ctx.hash = 0;
ctx.i = 0;
ctx.del = 1;
ctx.rc = 0;
/*
* Unlike other drivers, we accumulate list of pointers into
* interface address lists and we need to keep it safe even