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
91d4dbf2
Commit
91d4dbf2
authored
Sep 21, 2003
by
Wensong Zhang
Committed by
David S. Miller
Sep 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPVS]: Make __ip_vs_svc_lock local and use __user tags.
parent
b85e5b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_ctl.c
+4
-4
No files found.
net/ipv4/ipvs/ip_vs_ctl.c
View file @
91d4dbf2
...
...
@@ -48,7 +48,7 @@
static
DECLARE_MUTEX
(
__ip_vs_mutex
);
/* lock for service table */
rwlock_t
__ip_vs_svc_lock
=
RW_LOCK_UNLOCKED
;
static
rwlock_t
__ip_vs_svc_lock
=
RW_LOCK_UNLOCKED
;
/* lock for table with the real services */
static
rwlock_t
__ip_vs_rs_lock
=
RW_LOCK_UNLOCKED
;
...
...
@@ -1926,7 +1926,7 @@ ip_vs_copy_service(struct ip_vs_service_entry *dst, struct ip_vs_service *src)
static
inline
int
__ip_vs_get_service_entries
(
const
struct
ip_vs_get_services
*
get
,
struct
ip_vs_get_services
*
uptr
)
struct
ip_vs_get_services
__user
*
uptr
)
{
int
idx
,
count
=
0
;
struct
ip_vs_service
*
svc
;
...
...
@@ -1966,7 +1966,7 @@ __ip_vs_get_service_entries(const struct ip_vs_get_services *get,
static
inline
int
__ip_vs_get_dest_entries
(
const
struct
ip_vs_get_dests
*
get
,
struct
ip_vs_get_dests
*
uptr
)
struct
ip_vs_get_dests
__user
*
uptr
)
{
struct
ip_vs_service
*
svc
;
int
ret
=
0
;
...
...
@@ -2043,7 +2043,7 @@ static unsigned char get_arglen[GET_CMDID(IP_VS_SO_GET_MAX)+1] = {
};
static
int
do_ip_vs_get_ctl
(
struct
sock
*
sk
,
int
cmd
,
void
*
user
,
int
*
len
)
do_ip_vs_get_ctl
(
struct
sock
*
sk
,
int
cmd
,
void
__user
*
user
,
int
*
len
)
{
unsigned
char
arg
[
128
];
int
ret
=
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