[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Avoid AdapterDisable bugcheck on a disabled Adapter
MiniportShutdownEx maybe called when the miniport is in any state, including the Paused state after MiniportPause. Both MiniportPause and MiniportShutdownEx call AdapterDisable. The first call will unregister the suspend callback, and the second call will bugcheck, as the SuspendCallbackLate handle is now NULL. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- src/xennet/adapter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xennet/adapter.c b/src/xennet/adapter.c index 67ced3e..cbca7f0 100644 --- a/src/xennet/adapter.c +++ b/src/xennet/adapter.c @@ -1964,7 +1964,8 @@ AdapterDisable( IN PXENNET_ADAPTER Adapter ) { - ASSERT(Adapter->Enabled); + if (!Adapter->Enabled) + return; Adapter->Enabled = FALSE; ReceiverDisable(Adapter->Receiver); -- 2.50.1.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |