Revert mutex initialization check to look at mtx_description.
Pointed out by: jlemon, jhb
This commit is contained in:
parent
1acb27c64a
commit
62b119cabd
@ -117,7 +117,7 @@ ifinit(dummy)
|
||||
ifp->if_snd.ifq_maxlen = ifqmaxlen;
|
||||
}
|
||||
/* XXX This is an access violation of the mutex internals. */
|
||||
if (ifp->if_snd.ifq_mtx.mtx_flags == 0) {
|
||||
if (ifp->if_snd.ifq_mtx.mtx_description == NULL) {
|
||||
printf("%s%d XXX: driver didn't initialize queue mtx\n",
|
||||
ifp->if_name, ifp->if_unit);
|
||||
mtx_init(&ifp->if_snd.ifq_mtx, "unknown", MTX_DEF);
|
||||
|
Loading…
Reference in New Issue
Block a user