mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
- IoFlushAdapterBuffers: "AdapterObject" is not an optional parameter, it is vital to identify the DMA adapter. Remove the check which confused Coverity and ASSERTify this instead.
- Fix for Coverity error CID: 155 svn path=/trunk/; revision=36489
This commit is contained in:
parent
e724baacde
commit
ba22ca771d
|
@ -1569,9 +1569,11 @@ IoFlushAdapterBuffers(
|
||||||
PHYSICAL_ADDRESS PhysicalAddress;
|
PHYSICAL_ADDRESS PhysicalAddress;
|
||||||
PPFN_NUMBER MdlPagesPtr;
|
PPFN_NUMBER MdlPagesPtr;
|
||||||
|
|
||||||
|
/* Sanity checks */
|
||||||
ASSERT_IRQL_LESS_OR_EQUAL(DISPATCH_LEVEL);
|
ASSERT_IRQL_LESS_OR_EQUAL(DISPATCH_LEVEL);
|
||||||
|
ASSERT(AdapterObject);
|
||||||
|
|
||||||
if (AdapterObject != NULL && !AdapterObject->MasterDevice)
|
if (!AdapterObject->MasterDevice)
|
||||||
{
|
{
|
||||||
/* Mask out (disable) the DMA channel. */
|
/* Mask out (disable) the DMA channel. */
|
||||||
if (AdapterObject->AdapterNumber == 1)
|
if (AdapterObject->AdapterNumber == 1)
|
||||||
|
|
Loading…
Reference in a new issue