Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xcap-capability-linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xcap
xcap-capability-linux
Commits
29546a64
Commit
29546a64
authored
Mar 3, 2011
by
David S. Miller
Browse files
Options
Downloads
Patches
Plain Diff
ipv6: Use ERR_CAST in addrconf_dst_alloc.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a45d49d1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
net/ipv6/route.c
+1
-6
1 addition, 6 deletions
net/ipv6/route.c
with
1 addition
and
6 deletions
net/ipv6/route.c
+
1
−
6
View file @
29546a64
...
...
@@ -2022,12 +2022,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
if
(
IS_ERR
(
neigh
))
{
dst_free
(
&
rt
->
dst
);
/* We are casting this because that is the return
* 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
;
return
ERR_CAST
(
neigh
);
}
rt
->
rt6i_nexthop
=
neigh
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment