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
29546a64
Commit
29546a64
authored
Mar 03, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv6: Use ERR_CAST in addrconf_dst_alloc.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a45d49d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
net/ipv6/route.c
net/ipv6/route.c
+1
-6
No files found.
net/ipv6/route.c
View file @
29546a64
...
@@ -2022,12 +2022,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
...
@@ -2022,12 +2022,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
if
(
IS_ERR
(
neigh
))
{
if
(
IS_ERR
(
neigh
))
{
dst_free
(
&
rt
->
dst
);
dst_free
(
&
rt
->
dst
);
/* We are casting this because that is the return
return
ERR_CAST
(
neigh
);
* value type. But an errno encoded pointer is the
* same regardless of the underlying pointer type,
* and that's what we are returning. So this is OK.
*/
return
(
struct
rt6_info
*
)
neigh
;
}
}
rt
->
rt6i_nexthop
=
neigh
;
rt
->
rt6i_nexthop
=
neigh
;
...
...
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