Using StorPortFreePool in ScsiStopAdapter

Hi,

In the Microsoft AHCI Storport Miniport Driver, StorPortFreePool function has been used in ScsiStopAdapter which runs at DIRQL. But as per the MSDN docs, the StorPortFreePool should be used in functions running at <= DISPATCH LEVEL.

Can we use StorPortFreePool in ScsiStopAdapter? Will there not be in any DVL violations?

The Microsoft AHCI Storport Miniport Driver was downloaded from the below link.
https://code.msdn.microsoft.com/windowshardware/StorAhci-StorPort-Miniport-d29fc3b8

ScsiStopAdapter is called for both power down and PnP remove. For power down
you’re called at DIRQL, but in the case of PnP remove you are called at IRQL
PASSIVE_LEVEL.

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntdev…

Hi,

In the Microsoft AHCI Storport Miniport Driver, StorPortFreePool function
has been used in ScsiStopAdapter which runs at DIRQL. But as per the MSDN
docs, the StorPortFreePool should be used in functions running at <=
DISPATCH LEVEL.

Can we use StorPortFreePool in ScsiStopAdapter? Will there not be in any DVL
violations?

The Microsoft AHCI Storport Miniport Driver was downloaded from the below
link.
https://code.msdn.microsoft.com/windowshardware/StorAhci-StorPort-Miniport-d29fc3b8