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
aee11891
Commit
aee11891
authored
Aug 19, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: free_netdev - pcmcia drivers.
Replace kfree with free_netdev
parent
0b154e97
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
34 additions
and
18 deletions
+34
-18
drivers/net/pcmcia/3c574_cs.c
drivers/net/pcmcia/3c574_cs.c
+4
-2
drivers/net/pcmcia/3c589_cs.c
drivers/net/pcmcia/3c589_cs.c
+4
-2
drivers/net/pcmcia/axnet_cs.c
drivers/net/pcmcia/axnet_cs.c
+4
-2
drivers/net/pcmcia/com20020_cs.c
drivers/net/pcmcia/com20020_cs.c
+1
-1
drivers/net/pcmcia/fmvj18x_cs.c
drivers/net/pcmcia/fmvj18x_cs.c
+4
-2
drivers/net/pcmcia/ibmtr_cs.c
drivers/net/pcmcia/ibmtr_cs.c
+1
-1
drivers/net/pcmcia/nmclan_cs.c
drivers/net/pcmcia/nmclan_cs.c
+4
-2
drivers/net/pcmcia/pcnet_cs.c
drivers/net/pcmcia/pcnet_cs.c
+4
-2
drivers/net/pcmcia/smc91c92_cs.c
drivers/net/pcmcia/smc91c92_cs.c
+4
-2
drivers/net/pcmcia/xirc2ps_cs.c
drivers/net/pcmcia/xirc2ps_cs.c
+4
-2
No files found.
drivers/net/pcmcia/3c574_cs.c
View file @
aee11891
...
@@ -384,9 +384,11 @@ static void tc574_detach(dev_link_t *link)
...
@@ -384,9 +384,11 @@ static void tc574_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
else
kfree
(
dev
);
}
/* tc574_detach */
}
/* tc574_detach */
...
...
drivers/net/pcmcia/3c589_cs.c
View file @
aee11891
...
@@ -308,9 +308,11 @@ static void tc589_detach(dev_link_t *link)
...
@@ -308,9 +308,11 @@ static void tc589_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
else
kfree
(
dev
);
}
/* tc589_detach */
}
/* tc589_detach */
...
...
drivers/net/pcmcia/axnet_cs.c
View file @
aee11891
...
@@ -267,9 +267,11 @@ static void axnet_detach(dev_link_t *link)
...
@@ -267,9 +267,11 @@ static void axnet_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
&
info
->
dev
);
unregister_netdev
(
&
info
->
dev
);
kfree
(
info
);
free_netdev
(
&
info
->
dev
);
}
else
kfree
(
info
);
}
/* axnet_detach */
}
/* axnet_detach */
...
...
drivers/net/pcmcia/com20020_cs.c
View file @
aee11891
...
@@ -329,7 +329,7 @@ static void com20020_detach(dev_link_t *link)
...
@@ -329,7 +329,7 @@ static void com20020_detach(dev_link_t *link)
DEBUG
(
1
,
"kfree...
\n
"
);
DEBUG
(
1
,
"kfree...
\n
"
);
kfree
(
dev
->
priv
);
kfree
(
dev
->
priv
);
kfree
(
dev
);
free_netdev
(
dev
);
}
}
DEBUG
(
1
,
"kfree2...
\n
"
);
DEBUG
(
1
,
"kfree2...
\n
"
);
kfree
(
info
);
kfree
(
info
);
...
...
drivers/net/pcmcia/fmvj18x_cs.c
View file @
aee11891
...
@@ -365,9 +365,11 @@ static void fmvj18x_detach(dev_link_t *link)
...
@@ -365,9 +365,11 @@ static void fmvj18x_detach(dev_link_t *link)
/* Unlink device structure, free pieces */
/* Unlink device structure, free pieces */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
else
kfree
(
dev
);
}
/* fmvj18x_detach */
}
/* fmvj18x_detach */
...
...
drivers/net/pcmcia/ibmtr_cs.c
View file @
aee11891
...
@@ -306,7 +306,7 @@ static void ibmtr_detach(dev_link_t *link)
...
@@ -306,7 +306,7 @@ static void ibmtr_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
/* ibmtr_detach */
}
/* ibmtr_detach */
/*======================================================================
/*======================================================================
...
...
drivers/net/pcmcia/nmclan_cs.c
View file @
aee11891
...
@@ -579,9 +579,11 @@ static void nmclan_detach(dev_link_t *link)
...
@@ -579,9 +579,11 @@ static void nmclan_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
else
kfree
(
dev
);
}
/* nmclan_detach */
}
/* nmclan_detach */
...
...
drivers/net/pcmcia/pcnet_cs.c
View file @
aee11891
...
@@ -367,9 +367,11 @@ static void pcnet_detach(dev_link_t *link)
...
@@ -367,9 +367,11 @@ static void pcnet_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
&
info
->
dev
);
unregister_netdev
(
&
info
->
dev
);
kfree
(
info
);
free_netdev
(
&
info
->
dev
);
}
else
kfree
(
info
);
}
/* pcnet_detach */
}
/* pcnet_detach */
...
...
drivers/net/pcmcia/smc91c92_cs.c
View file @
aee11891
...
@@ -443,9 +443,11 @@ static void smc91c92_detach(dev_link_t *link)
...
@@ -443,9 +443,11 @@ static void smc91c92_detach(dev_link_t *link)
/* Unlink device structure, free bits */
/* Unlink device structure, free bits */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
else
kfree
(
dev
);
}
/* smc91c92_detach */
}
/* smc91c92_detach */
...
...
drivers/net/pcmcia/xirc2ps_cs.c
View file @
aee11891
...
@@ -699,9 +699,11 @@ xirc2ps_detach(dev_link_t * link)
...
@@ -699,9 +699,11 @@ xirc2ps_detach(dev_link_t * link)
/* Unlink device structure, free it */
/* Unlink device structure, free it */
*
linkp
=
link
->
next
;
*
linkp
=
link
->
next
;
if
(
link
->
dev
)
if
(
link
->
dev
)
{
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
);
free_netdev
(
dev
);
}
else
kfree
(
dev
);
}
/* xirc2ps_detach */
}
/* xirc2ps_detach */
...
...
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