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
bd14ba84
Commit
bd14ba84
authored
Mar 27, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gianfar: Fix kfree(skb)
Noticed by Li Yang. Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5e68b772
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/net/gianfar.c
drivers/net/gianfar.c
+1
-1
No files found.
drivers/net/gianfar.c
View file @
bd14ba84
...
@@ -1317,7 +1317,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -1317,7 +1317,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev)
skb_new
=
skb_realloc_headroom
(
skb
,
GMAC_FCB_LEN
);
skb_new
=
skb_realloc_headroom
(
skb
,
GMAC_FCB_LEN
);
if
(
!
skb_new
)
{
if
(
!
skb_new
)
{
dev
->
stats
.
tx_errors
++
;
dev
->
stats
.
tx_errors
++
;
kfree
(
skb
);
kfree
_skb
(
skb
);
return
NETDEV_TX_OK
;
return
NETDEV_TX_OK
;
}
}
kfree_skb
(
skb
);
kfree_skb
(
skb
);
...
...
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