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
844acee5
Commit
844acee5
authored
Oct 28, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: Fixes for previous USB_* flag patch.
parent
22f63236
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/usb/core/hcd.c
drivers/usb/core/hcd.c
+2
-2
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.c
+1
-1
No files found.
drivers/usb/core/hcd.c
View file @
844acee5
...
...
@@ -1150,9 +1150,9 @@ static int hcd_unlink_urb (struct urb *urb)
* lower level hcd code is always async, locking on urb->status
* updates; an intercepted completion unblocks us.
*/
if
((
urb
->
transfer_flags
&
U
S
B_TIMEOUT_KILLED
))
if
((
urb
->
transfer_flags
&
U
R
B_TIMEOUT_KILLED
))
urb
->
status
=
-
ETIMEDOUT
;
else
if
(
!
(
urb
->
transfer_flags
&
U
S
B_ASYNC_UNLINK
))
{
else
if
(
!
(
urb
->
transfer_flags
&
U
R
B_ASYNC_UNLINK
))
{
if
(
in_interrupt
())
{
dbg
(
"non-async unlink in_interrupt"
);
retval
=
-
EWOULDBLOCK
;
...
...
drivers/usb/net/usbnet.c
View file @
844acee5
...
...
@@ -1957,7 +1957,7 @@ static int usbnet_start_xmit (struct sk_buff *skb, struct net_device *net)
usb_fill_bulk_urb
(
urb
,
dev
->
udev
,
usb_sndbulkpipe
(
dev
->
udev
,
info
->
out
),
skb
->
data
,
skb
->
len
,
tx_complete
,
skb
);
urb
->
transfer_flags
|=
U
S
B_ASYNC_UNLINK
;
urb
->
transfer_flags
|=
U
R
B_ASYNC_UNLINK
;
// FIXME urb->timeout = ... jiffies ... ;
spin_lock_irqsave
(
&
dev
->
txq
.
lock
,
flags
);
...
...
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