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
693eb251
Commit
693eb251
authored
Oct 24, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix open counting in usbkbd.c and usbmouse.c in case the irq urb
submit fails. Bug spotted by Thiemo Seufer.
parent
61288a58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
drivers/usb/input/usbkbd.c
drivers/usb/input/usbkbd.c
+3
-1
drivers/usb/input/usbmouse.c
drivers/usb/input/usbmouse.c
+3
-1
No files found.
drivers/usb/input/usbkbd.c
View file @
693eb251
...
...
@@ -163,8 +163,10 @@ static int usb_kbd_open(struct input_dev *dev)
return
0
;
kbd
->
irq
->
dev
=
kbd
->
usbdev
;
if
(
usb_submit_urb
(
kbd
->
irq
,
GFP_KERNEL
))
if
(
usb_submit_urb
(
kbd
->
irq
,
GFP_KERNEL
))
{
kbd
->
open
--
;
return
-
EIO
;
}
return
0
;
}
...
...
drivers/usb/input/usbmouse.c
View file @
693eb251
...
...
@@ -86,8 +86,10 @@ static int usb_mouse_open(struct input_dev *dev)
return
0
;
mouse
->
irq
->
dev
=
mouse
->
usbdev
;
if
(
usb_submit_urb
(
mouse
->
irq
,
GFP_KERNEL
))
if
(
usb_submit_urb
(
mouse
->
irq
,
GFP_KERNEL
))
{
mouse
->
open
--
;
return
-
EIO
;
}
return
0
;
}
...
...
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