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
6cbef8f8
Commit
6cbef8f8
authored
Jun 13, 2003
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
2f60f10c
009ce6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
drivers/usb/input/hiddev.c
drivers/usb/input/hiddev.c
+10
-0
No files found.
drivers/usb/input/hiddev.c
View file @
6cbef8f8
...
@@ -442,10 +442,14 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
...
@@ -442,10 +442,14 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
if
(
copy_to_user
((
void
*
)
arg
,
&
dinfo
,
sizeof
(
dinfo
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
dinfo
,
sizeof
(
dinfo
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
case
HIDIOCGFLAG
:
case
HIDIOCGFLAG
:
if
(
put_user
(
list
->
flags
,
(
int
*
)
arg
))
if
(
put_user
(
list
->
flags
,
(
int
*
)
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
case
HIDIOCSFLAG
:
case
HIDIOCSFLAG
:
{
{
int
newflags
;
int
newflags
;
...
@@ -533,6 +537,8 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
...
@@ -533,6 +537,8 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
if
(
copy_to_user
((
void
*
)
arg
,
&
rinfo
,
sizeof
(
rinfo
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
rinfo
,
sizeof
(
rinfo
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
case
HIDIOCGFIELDINFO
:
case
HIDIOCGFIELDINFO
:
if
(
copy_from_user
(
&
finfo
,
(
void
*
)
arg
,
sizeof
(
finfo
)))
if
(
copy_from_user
(
&
finfo
,
(
void
*
)
arg
,
sizeof
(
finfo
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -564,6 +570,8 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
...
@@ -564,6 +570,8 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
if
(
copy_to_user
((
void
*
)
arg
,
&
finfo
,
sizeof
(
finfo
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
finfo
,
sizeof
(
finfo
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
case
HIDIOCGUCODE
:
case
HIDIOCGUCODE
:
if
(
copy_from_user
(
&
uref
,
(
void
*
)
arg
,
sizeof
(
uref
)))
if
(
copy_from_user
(
&
uref
,
(
void
*
)
arg
,
sizeof
(
uref
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -585,6 +593,8 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
...
@@ -585,6 +593,8 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
if
(
copy_to_user
((
void
*
)
arg
,
&
uref
,
sizeof
(
uref
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
uref
,
sizeof
(
uref
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
case
HIDIOCGUSAGE
:
case
HIDIOCGUSAGE
:
case
HIDIOCSUSAGE
:
case
HIDIOCSUSAGE
:
case
HIDIOCGCOLLECTIONINDEX
:
case
HIDIOCGCOLLECTIONINDEX
:
...
...
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