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
e86d3703
Commit
e86d3703
authored
Oct 04, 2004
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Fix free_netdev after failed alloc_netdev in ipgre_init
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
b1eb7853
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+6
-5
No files found.
net/ipv4/ip_gre.c
View file @
e86d3703
...
...
@@ -1250,7 +1250,7 @@ static struct net_protocol ipgre_protocol = {
static
int
__init
ipgre_init
(
void
)
{
int
err
=
-
EINVAL
;
int
err
;
printk
(
KERN_INFO
"GRE over IPv4 tunneling driver
\n
"
);
...
...
@@ -1263,18 +1263,19 @@ static int __init ipgre_init(void)
ipgre_tunnel_setup
);
if
(
!
ipgre_fb_tunnel_dev
)
{
err
=
-
ENOMEM
;
goto
fail
;
goto
err1
;
}
ipgre_fb_tunnel_dev
->
init
=
ipgre_fb_tunnel_init
;
if
((
err
=
register_netdev
(
ipgre_fb_tunnel_dev
)))
goto
fail
;
goto
err2
;
out:
return
err
;
fail:
inet_del_protocol
(
&
ipgre_protocol
,
IPPROTO_GRE
);
err2:
free_netdev
(
ipgre_fb_tunnel_dev
);
err1:
inet_del_protocol
(
&
ipgre_protocol
,
IPPROTO_GRE
);
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