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
6d9746f6
Commit
6d9746f6
authored
May 05, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Kill spurious module_{get,put}().
parent
0ebd8fff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+0
-7
No files found.
net/ipv6/af_inet6.c
View file @
6d9746f6
...
@@ -111,7 +111,6 @@ static void inet6_sock_destruct(struct sock *sk)
...
@@ -111,7 +111,6 @@ static void inet6_sock_destruct(struct sock *sk)
#ifdef INET_REFCNT_DEBUG
#ifdef INET_REFCNT_DEBUG
atomic_dec
(
&
inet6_sock_nr
);
atomic_dec
(
&
inet6_sock_nr
);
#endif
#endif
module_put
(
THIS_MODULE
);
}
}
static
__inline__
kmem_cache_t
*
inet6_sk_slab
(
int
protocol
)
static
__inline__
kmem_cache_t
*
inet6_sk_slab
(
int
protocol
)
...
@@ -243,11 +242,6 @@ static int inet6_create(struct socket *sock, int protocol)
...
@@ -243,11 +242,6 @@ static int inet6_create(struct socket *sock, int protocol)
atomic_inc
(
&
inet6_sock_nr
);
atomic_inc
(
&
inet6_sock_nr
);
atomic_inc
(
&
inet_sock_nr
);
atomic_inc
(
&
inet_sock_nr
);
#endif
#endif
if
(
!
try_module_get
(
THIS_MODULE
))
{
inet_sock_release
(
sk
);
return
-
EBUSY
;
}
if
(
inet
->
num
)
{
if
(
inet
->
num
)
{
/* It assumes that any protocol which allows
/* It assumes that any protocol which allows
* the user to assign a number at socket
* the user to assign a number at socket
...
@@ -259,7 +253,6 @@ static int inet6_create(struct socket *sock, int protocol)
...
@@ -259,7 +253,6 @@ static int inet6_create(struct socket *sock, int protocol)
if
(
sk
->
prot
->
init
)
{
if
(
sk
->
prot
->
init
)
{
int
err
=
sk
->
prot
->
init
(
sk
);
int
err
=
sk
->
prot
->
init
(
sk
);
if
(
err
!=
0
)
{
if
(
err
!=
0
)
{
module_put
(
THIS_MODULE
);
inet_sock_release
(
sk
);
inet_sock_release
(
sk
);
return
err
;
return
err
;
}
}
...
...
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