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
0edecc02
Commit
0edecc02
authored
May 10, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atm: switch do_atmif_sioc() to direct use of atm_dev_ioctl()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8cacb416
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
21 deletions
+4
-21
net/atm/ioctl.c
net/atm/ioctl.c
+4
-21
No files found.
net/atm/ioctl.c
View file @
0edecc02
...
@@ -286,30 +286,13 @@ static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
...
@@ -286,30 +286,13 @@ static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
static
int
do_atmif_sioc
(
struct
socket
*
sock
,
unsigned
int
cmd
,
static
int
do_atmif_sioc
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
long
arg
)
{
{
struct
atmif_sioc
__user
*
sioc
;
struct
compat_atmif_sioc
__user
*
sioc32
=
compat_ptr
(
arg
)
;
struct
compat_atmif_sioc
__user
*
sioc32
;
int
number
;
u32
data
;
u32
data
;
void
__user
*
datap
;
int
err
;
sioc
=
compat_alloc_user_space
(
sizeof
(
*
sioc
));
sioc32
=
compat_ptr
(
arg
);
if
(
copy_in_user
(
&
sioc
->
number
,
&
sioc32
->
number
,
2
*
sizeof
(
int
))
||
if
(
get_user
(
data
,
&
sioc32
->
arg
)
||
get_user
(
number
,
&
sioc32
->
number
))
get_user
(
data
,
&
sioc32
->
arg
))
return
-
EFAULT
;
datap
=
compat_ptr
(
data
);
if
(
put_user
(
datap
,
&
sioc
->
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
return
atm_dev_ioctl
(
cmd
,
compat_ptr
(
data
),
&
sioc32
->
length
,
number
,
0
);
err
=
do_vcc_ioctl
(
sock
,
cmd
,
(
unsigned
long
)
sioc
,
0
);
if
(
!
err
)
{
if
(
copy_in_user
(
&
sioc32
->
length
,
&
sioc
->
length
,
sizeof
(
int
)))
err
=
-
EFAULT
;
}
return
err
;
}
}
static
int
do_atm_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd32
,
static
int
do_atm_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd32
,
...
...
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