summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Fleytman <dfleytma@redhat.com>2015-04-30 18:54:05 +0300
committerDmitry Fleytman <dfleytma@redhat.com>2015-04-30 18:54:05 +0300
commitc0fd0b9692f5df8f679e8b7418a23b987f1f9424 (patch)
treef2409b93971ccc7cdf6b47f05fe545fb1ba1f637
parent5a05b4669ce0ffa82790549c3cb7b9c5082ed18b (diff)
UsbDk: Fix extra PDO dereference for redirected objects
This problem lead to BSOD on stop redirection Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
-rw-r--r--UsbDk/FilterDevice.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/UsbDk/FilterDevice.cpp b/UsbDk/FilterDevice.cpp
index 37ef667..b4433db 100644
--- a/UsbDk/FilterDevice.cpp
+++ b/UsbDk/FilterDevice.cpp
@@ -228,10 +228,11 @@ void CUsbDkHubFilterStrategy::WipeHiddenDevices(CDeviceRelations &Relations)
!Child->IsIndicated())
{
Hide = m_ControlDevice->ShouldHide(Child->DeviceDescriptor());
- if (!Hide)
- {
- Child->MarkAsIndicated();
- }
+ }
+
+ if (!Hide)
+ {
+ Child->MarkAsIndicated();
}
return false;