- 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:
Stefan Ginsberg 2008-09-24 17:11:35 +00:00
parent e724baacde
commit ba22ca771d

View file

@ -1569,9 +1569,11 @@ IoFlushAdapterBuffers(
PHYSICAL_ADDRESS PhysicalAddress;
PPFN_NUMBER MdlPagesPtr;
/* Sanity checks */
ASSERT_IRQL_LESS_OR_EQUAL(DISPATCH_LEVEL);
ASSERT(AdapterObject);
if (AdapterObject != NULL && !AdapterObject->MasterDevice)
if (!AdapterObject->MasterDevice)
{
/* Mask out (disable) the DMA channel. */
if (AdapterObject->AdapterNumber == 1)