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
nexedi
linux
Commits
37febd0f
Commit
37febd0f
authored
Aug 27, 2002
by
David S. Miller
Committed by
Vojtech Pavlik
Aug 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I did find one bug, hid_submit_ctrl() does not cpu_to_le16()
all the control request fields properly.
parent
458dbf65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+1
-1
No files found.
drivers/usb/input/hid-core.c
View file @
37febd0f
...
...
@@ -1073,7 +1073,7 @@ static int hid_submit_ctrl(struct hid_device *hid)
hid
->
cr
.
bRequestType
=
USB_TYPE_CLASS
|
USB_RECIP_INTERFACE
|
dir
;
hid
->
cr
.
bRequest
=
(
dir
==
USB_DIR_OUT
)
?
HID_REQ_SET_REPORT
:
HID_REQ_GET_REPORT
;
hid
->
cr
.
wValue
=
((
report
->
type
+
1
)
<<
8
)
|
report
->
id
;
hid
->
cr
.
wValue
=
cpu_to_le16
(((
report
->
type
+
1
)
<<
8
)
|
report
->
id
)
;
hid
->
cr
.
wIndex
=
cpu_to_le16
(
hid
->
ifnum
);
hid
->
cr
.
wLength
=
cpu_to_le16
(
hid
->
urbctrl
->
transfer_buffer_length
);
...
...
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