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
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
Show 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)
...
@@ -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
);
kaweth_dbg
(
"%s: TX status %d."
,
kaweth
->
net
->
name
,
urb
->
status
);
netif_wake_queue
(
kaweth
->
net
);
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)
...
@@ -721,7 +721,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
if
(
kaweth
->
removed
)
{
if
(
kaweth
->
removed
)
{
/* our device is undergoing disconnection - we bail out */
/* our device is undergoing disconnection - we bail out */
spin_unlock
(
&
kaweth
->
device_lock
);
spin_unlock
(
&
kaweth
->
device_lock
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
_irq
(
skb
);
return
0
;
return
0
;
}
}
...
@@ -733,7 +733,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
...
@@ -733,7 +733,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
/* no such luck - we make our own */
/* no such luck - we make our own */
struct
sk_buff
*
copied_skb
;
struct
sk_buff
*
copied_skb
;
copied_skb
=
skb_copy_expand
(
skb
,
2
,
0
,
GFP_ATOMIC
);
copied_skb
=
skb_copy_expand
(
skb
,
2
,
0
,
GFP_ATOMIC
);
dev_kfree_skb_
any
(
skb
);
dev_kfree_skb_
irq
(
skb
);
skb
=
copied_skb
;
skb
=
copied_skb
;
if
(
!
copied_skb
)
{
if
(
!
copied_skb
)
{
kaweth
->
stats
.
tx_errors
++
;
kaweth
->
stats
.
tx_errors
++
;
...
@@ -763,7 +763,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
...
@@ -763,7 +763,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
kaweth
->
stats
.
tx_errors
++
;
kaweth
->
stats
.
tx_errors
++
;
netif_start_queue
(
net
);
netif_start_queue
(
net
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
_irq
(
skb
);
}
}
else
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