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
21a86619
Commit
21a86619
authored
Sep 01, 2003
by
François Romieu
Committed by
David S. Miller
Sep 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Balance alloc_netdev() with free_netdev() in ethertap.
parent
b56ea1b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/ethertap.c
drivers/net/ethertap.c
+3
-3
No files found.
drivers/net/ethertap.c
View file @
21a86619
...
@@ -106,12 +106,12 @@ static int __init ethertap_probe(int unit)
...
@@ -106,12 +106,12 @@ static int __init ethertap_probe(int unit)
err
=
register_netdev
(
dev
);
err
=
register_netdev
(
dev
);
if
(
err
)
if
(
err
)
goto
out
1
;
goto
out
_free
;
tap_map
[
unit
]
=
dev
;
tap_map
[
unit
]
=
dev
;
return
0
;
return
0
;
out
1
:
out
_free
:
kfree
(
dev
);
free_netdev
(
dev
);
out:
out:
return
err
;
return
err
;
}
}
...
...
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