Use implicit type cast for ->k_lock to fix compilation of ndis
as a part of the GENERIC kernel with INVARIANT* and WITNESS* turned off. (For non GENERIC kernel KTR and MUTEX_PROFILING should be also off). Submitted by: Eygene A. Ryabinkin <rea at rea dot mbslab dot kiae dot ru> Approved by: re (scottl) PR: 81767
This commit is contained in:
parent
c52dab628a
commit
fbb7165a4b
@ -3110,15 +3110,15 @@ KeRemoveQueueDpc(dpc)
|
||||
if (dpc->k_lock == NULL)
|
||||
return(FALSE);
|
||||
|
||||
mtx_lock_spin(dpc->k_lock);
|
||||
mtx_lock_spin((struct mtx*)(dpc->k_lock));
|
||||
if (dpc->k_dpclistentry.nle_flink == &dpc->k_dpclistentry) {
|
||||
mtx_unlock_spin(dpc->k_lock);
|
||||
mtx_unlock_spin((struct mtx*)(dpc->k_lock));
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
REMOVE_LIST_ENTRY((&dpc->k_dpclistentry));
|
||||
INIT_LIST_HEAD((&dpc->k_dpclistentry));
|
||||
mtx_unlock_spin(dpc->k_lock);
|
||||
mtx_unlock_spin((struct mtx*)(dpc->k_lock));
|
||||
|
||||
return(TRUE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user