projects
/
usb-driver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adb51cf
)
release usb-device on close
author
Michael Gernoth
<michael@gernoth.net>
Thu, 10 Apr 2008 20:31:10 +0000
(22:31 +0200)
committer
Michael Gernoth
<michael@gernoth.net>
Thu, 10 Apr 2008 20:31:10 +0000
(22:31 +0200)
usb-driver.c
patch
|
blob
|
blame
|
history
diff --git
a/usb-driver.c
b/usb-driver.c
index 942cdc15a01c8ed59a3d86eb12b26813b1d1799e..1162d51b98836e377911c0321e996c07058cf569 100644
(file)
--- a/
usb-driver.c
+++ b/
usb-driver.c
@@
-858,8
+858,10
@@
int close(int fd) {
if (fd == windrvrfd && windrvrfd >= 0) {
DPRINTF("close windrvrfd\n");
- if (usb_devhandle)
+ if (usb_devhandle) {
+ usb_claim(0);
usb_close(usb_devhandle);
+ }
usb_devhandle = NULL;
usbinterface = -1;
Impressum
,
Datenschutz