Commit graph

11 commits

Author SHA1 Message Date
Dmitry Fleytman
fccb982f58 FilterDevice: Protect filter objects from deletion while in use
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>
2015-11-24 12:32:33 +02:00
Dmitry Fleytman
1b169f4bb4 UsbDk: Store driver params registry key path for future use
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2015-03-10 19:10:20 +02:00
Pavel Gurvich
7bd5c64b65 UsbDk: Fix leak of CUsbDkFilterDevice objects
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>
2014-09-16 08:48:24 +03:00
Dmitry Fleytman
d5d51dfd47 UsbDk: place all system includes into stdafx.h
This makes include policy more strict and ensures
all system includes properly wrapped with extern "C"

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-06-09 11:50:26 +03:00
Pavel Gurvich
a77d8161e4 UsbDk: Add license-related files and headers
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-20 11:56:20 +03:00
Pavel Gurvich
5b7747afe7 UsbDk: Cosmetic changes
1. Remove unnesesary UNREFERENCED_PARAMETER
2. Add TRACE in UsbDk/Driver.cpp

Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:13 +03:00
Dmitry Fleytman
6ee40a363b UsbDk: Introduce UsbDkFilterDevice class
- Introduce filtering logic class
 - Make control device creation logic object oriented
 - Integrate control device creation with filter devices creation

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:10 +03:00
Dmitry Fleytman
0bda06c37b UsbDk: Control device lifecycle management implemented
Create control device on first filter attachment
Destroy control device when all filters detached

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:10 +03:00
Dmitry Fleytman
6c578fdc31 UsbDk: Create control device on load
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:09 +03:00
Dmitry Fleytman
85fbc004c3 wpp: all KdPrints converted to WPP traces
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:09 +03:00
Dmitry Fleytman
ca1f881e15 Very basic proof of concept
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>
2014-05-11 19:26:09 +03:00
Renamed from UsbDk/Driver.c (Browse further)