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
81f6a9d7
Commit
81f6a9d7
authored
Aug 17, 2003
by
Ville Nuorvala
Committed by
David S. Miller
Aug 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix leaks of rt6_cow()d routes in route.c
parent
99ba7ff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
net/ipv6/route.c
net/ipv6/route.c
+3
-1
No files found.
net/ipv6/route.c
View file @
81f6a9d7
...
...
@@ -432,6 +432,7 @@ void ip6_route_input(struct sk_buff *skb)
/* Race condition! In the gap, when rt6_lock was
released someone could insert this route. Relookup.
*/
dst_release
(
&
rt
->
u
.
dst
);
goto
relookup
;
}
dst_hold
(
&
rt
->
u
.
dst
);
...
...
@@ -486,6 +487,7 @@ struct dst_entry * ip6_route_output(struct sock *sk, struct flowi *fl)
/* Race condition! In the gap, when rt6_lock was
released someone could insert this route. Relookup.
*/
dst_release
(
&
rt
->
u
.
dst
);
goto
relookup
;
}
dst_hold
(
&
rt
->
u
.
dst
);
...
...
@@ -1094,8 +1096,8 @@ void rt6_pmtu_discovery(struct in6_addr *daddr, struct in6_addr *saddr,
*/
dst_set_expires
(
&
nrt
->
u
.
dst
,
ip6_rt_mtu_expires
);
nrt
->
rt6i_flags
|=
RTF_DYNAMIC
|
RTF_EXPIRES
;
dst_release
(
&
nrt
->
u
.
dst
);
}
dst_release
(
&
nrt
->
u
.
dst
);
}
else
{
nrt
=
ip6_rt_copy
(
rt
);
if
(
nrt
==
NULL
)
...
...
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