Fix a panic when bringing up the bridge interface. We were casting a ifnet

pointer to a softc which is no longer valid since the ifnet struct was split
out from the softc.

Approved by:	mlaier (mentor)
Approved by:	re (blanket)
This commit is contained in:
Andrew Thompson 2005-06-27 21:58:12 +00:00
parent e22225b87b
commit ca6c404ce3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147634

View File

@ -595,7 +595,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
* If interface is marked up and it is stopped, then
* start it.
*/
(*ifp->if_init)(ifp);
(*ifp->if_init)(sc);
}
break;