This patch makes filter object reference counting objects and
ensures reference is help to filter objects while they are in use.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
If driver fails filter device creation process
before WDF device created context memory allocated
must be freed explicitely.
Bug found by HCK fault injection test.
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This makes include policy more strict and ensures
all system includes properly wrapped with extern "C"
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
Functionality:
1. Attach to USB hub as an upper filter
2. Hide original device from PnP manager
3. Create our own device show to PnP manager as USBHUB child
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>