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
43638f5e
Commit
43638f5e
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: sctp annotation
parent
c277c852
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
include/net/sctp/structs.h
include/net/sctp/structs.h
+3
-3
include/net/sctp/user.h
include/net/sctp/user.h
+1
-1
net/sctp/socket.c
net/sctp/socket.c
+3
-3
net/sctp/sysctl.c
net/sctp/sysctl.c
+2
-2
No files found.
include/net/sctp/structs.h
View file @
43638f5e
...
...
@@ -437,13 +437,13 @@ struct sctp_af {
int
(
*
setsockopt
)
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
*
optval
,
char
__user
*
optval
,
int
optlen
);
int
(
*
getsockopt
)
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
*
optval
,
int
*
optlen
);
char
__user
*
optval
,
int
__user
*
optlen
);
struct
dst_entry
*
(
*
get_dst
)
(
struct
sctp_association
*
asoc
,
union
sctp_addr
*
daddr
,
union
sctp_addr
*
saddr
);
...
...
include/net/sctp/user.h
View file @
43638f5e
...
...
@@ -559,7 +559,7 @@ struct sctp_status {
struct
sctp_getaddrs
{
sctp_assoc_t
assoc_id
;
int
addr_num
;
struct
sockaddr
*
addrs
;
struct
sockaddr
__user
*
addrs
;
};
/* These are bit fields for msghdr->msg_flags. See section 5.1. */
...
...
net/sctp/socket.c
View file @
43638f5e
...
...
@@ -2799,7 +2799,7 @@ static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len,
if
(
len
!=
sizeof
(
struct
sctp_paddrparams
))
return
-
EINVAL
;
if
(
copy_from_user
(
&
params
,
optval
,
*
optlen
))
/* XXXXXX */
if
(
copy_from_user
(
&
params
,
optval
,
len
))
return
-
EFAULT
;
trans
=
sctp_addr_id2transport
(
sk
,
&
params
.
spp_address
,
...
...
@@ -2969,7 +2969,7 @@ static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
int
cnt
=
0
;
struct
sctp_getaddrs
getaddrs
;
struct
sctp_sockaddr_entry
*
from
;
void
*
to
;
void
__user
*
to
;
union
sctp_addr
temp
;
struct
sctp_opt
*
sp
=
sctp_sk
(
sk
);
int
addrlen
;
...
...
@@ -2996,7 +2996,7 @@ static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
bp
=
&
asoc
->
base
.
bind_addr
;
}
to
=
(
void
*
)
getaddrs
.
addrs
;
to
=
getaddrs
.
addrs
;
list_for_each
(
pos
,
&
bp
->
address_list
)
{
from
=
list_entry
(
pos
,
struct
sctp_sockaddr_entry
,
...
...
net/sctp/sysctl.c
View file @
43638f5e
...
...
@@ -232,7 +232,7 @@ static int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, int nlen,
return
-
EINVAL
;
}
if
(
put_user
((
*
(
int
*
)(
table
->
data
)
*
1000
)
/
HZ
,
(
int
*
)
oldval
)
||
(
int
__user
*
)
oldval
)
||
(
oldlenp
&&
put_user
(
sizeof
(
int
),
oldlenp
)))
return
-
EFAULT
;
}
...
...
@@ -242,7 +242,7 @@ static int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, int nlen,
if
(
newlen
!=
sizeof
(
int
))
return
-
EINVAL
;
if
(
get_user
(
new
,
(
int
*
)
newval
))
if
(
get_user
(
new
,
(
int
__user
*
)
newval
))
return
-
EFAULT
;
*
(
int
*
)(
table
->
data
)
=
(
new
*
HZ
)
/
1000
;
...
...
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