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
5a21f15b
Commit
5a21f15b
authored
Jan 06, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Jan 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: kaweth freeing skbs
this is the 2.5 version of the 2.4 fix - proper freeing of skbs
parent
2428df6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/usb/net/kaweth.c
drivers/usb/net/kaweth.c
+4
-4
No files found.
drivers/usb/net/kaweth.c
View file @
5a21f15b
...
...
@@ -703,7 +703,7 @@ static void kaweth_usb_transmit_complete(struct urb *urb, struct pt_regs *regs)
kaweth_dbg
(
"%s: TX status %d."
,
kaweth
->
net
->
name
,
urb
->
status
);
netif_wake_queue
(
kaweth
->
net
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
_irq
(
skb
);
}
/****************************************************************
...
...
@@ -721,7 +721,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
if
(
kaweth
->
removed
)
{
/* our device is undergoing disconnection - we bail out */
spin_unlock
(
&
kaweth
->
device_lock
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
_irq
(
skb
);
return
0
;
}
...
...
@@ -733,7 +733,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
/* no such luck - we make our own */
struct
sk_buff
*
copied_skb
;
copied_skb
=
skb_copy_expand
(
skb
,
2
,
0
,
GFP_ATOMIC
);
dev_kfree_skb_
any
(
skb
);
dev_kfree_skb_
irq
(
skb
);
skb
=
copied_skb
;
if
(
!
copied_skb
)
{
kaweth
->
stats
.
tx_errors
++
;
...
...
@@ -763,7 +763,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
kaweth
->
stats
.
tx_errors
++
;
netif_start_queue
(
net
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
_irq
(
skb
);
}
else
{
...
...
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