Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4638a2b9
Commit
4638a2b9
authored
Jul 15, 2003
by
Henning Meier-Geinitz
Committed by
Greg Kroah-Hartman
Jul 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix open/probe race in scanner driver
This patch from Oliver Neukum fixes a race between open and probe.
parent
1dd7d25a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
drivers/usb/image/scanner.c
drivers/usb/image/scanner.c
+5
-3
drivers/usb/image/scanner.h
drivers/usb/image/scanner.h
+1
-1
No files found.
drivers/usb/image/scanner.c
View file @
4638a2b9
...
...
@@ -364,6 +364,9 @@
* Mustek, Pacific Image Electronics, Plustek, and Visioneer scanners.
* Fixed names of some other scanners.
*
* 0.4.14 2003-07-15
* - Fixed race between open and probe (Oliver Neukum).
*
* TODO
* - Performance
* - Select/poll methods
...
...
@@ -1117,9 +1120,8 @@ probe_scanner(struct usb_interface *intf,
info
(
"USB scanner device (0x%04x/0x%04x) now attached to %s"
,
dev
->
descriptor
.
idVendor
,
dev
->
descriptor
.
idProduct
,
name
);
up
(
&
scn_mutex
);
usb_set_intfdata
(
intf
,
scn
);
up
(
&
scn_mutex
);
return
0
;
}
...
...
drivers/usb/image/scanner.h
View file @
4638a2b9
...
...
@@ -43,7 +43,7 @@
// #define DEBUG
#define DRIVER_VERSION "0.4.1
3
"
#define DRIVER_VERSION "0.4.1
4
"
#define DRIVER_DESC "USB Scanner Driver"
#include <linux/usb.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment