From 97a0fe195e563c0dfa26feb471be279a36b5e1f4 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Wed, 25 Nov 2015 12:43:55 +0000 Subject: [PATCH] Fix xenstore cleanup The distribution information is not cleared in the correct place and cleanup of the hotplug feature flag is missing. This patch fixes both issues. Signed-off-by: Paul Durrant --- src/xenvif/fdo.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/xenvif/fdo.c b/src/xenvif/fdo.c index 0fc27ca..7d4d015 100644 --- a/src/xenvif/fdo.c +++ b/src/xenvif/fdo.c @@ -1345,11 +1345,19 @@ __FdoD0ToD3( ASSERT3U(KeGetCurrentIrql(), ==, DISPATCH_LEVEL); + (VOID) XENBUS_STORE(Remove, + &Fdo->StoreInterface, + NULL, + "feature/hotplug", + "vif"); + (VOID) XENBUS_STORE(WatchRemove, &Fdo->StoreInterface, Fdo->ScanWatch); Fdo->ScanWatch = NULL; + FdoClearDistribution(Fdo); + Trace("<====\n"); } @@ -1516,8 +1524,6 @@ FdoD0ToD3( KeLowerIrql(Irql); - FdoClearDistribution(Fdo); - Trace("<====\n"); } -- 2.39.5