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
6d85a009
Commit
6d85a009
authored
Oct 04, 2004
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix free_netdev after failed alloc_netdev in sit_init
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
4f0a68ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
net/ipv6/sit.c
net/ipv6/sit.c
+5
-4
No files found.
net/ipv6/sit.c
View file @
6d85a009
...
@@ -814,18 +814,19 @@ int __init sit_init(void)
...
@@ -814,18 +814,19 @@ int __init sit_init(void)
ipip6_tunnel_setup
);
ipip6_tunnel_setup
);
if
(
!
ipip6_fb_tunnel_dev
)
{
if
(
!
ipip6_fb_tunnel_dev
)
{
err
=
-
ENOMEM
;
err
=
-
ENOMEM
;
goto
fail
;
goto
err1
;
}
}
ipip6_fb_tunnel_dev
->
init
=
ipip6_fb_tunnel_init
;
ipip6_fb_tunnel_dev
->
init
=
ipip6_fb_tunnel_init
;
if
((
err
=
register_netdev
(
ipip6_fb_tunnel_dev
)))
if
((
err
=
register_netdev
(
ipip6_fb_tunnel_dev
)))
goto
fail
;
goto
err2
;
out:
out:
return
err
;
return
err
;
fail:
err2:
inet_del_protocol
(
&
sit_protocol
,
IPPROTO_IPV6
);
free_netdev
(
ipip6_fb_tunnel_dev
);
free_netdev
(
ipip6_fb_tunnel_dev
);
err1:
inet_del_protocol
(
&
sit_protocol
,
IPPROTO_IPV6
);
goto
out
;
goto
out
;
}
}
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