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
37be0f5e
Commit
37be0f5e
authored
Apr 13, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix up spin_unlock_irqrestore() issues in previous patch
parent
15d7be96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/usb/core/hcd.c
drivers/usb/core/hcd.c
+3
-3
No files found.
drivers/usb/core/hcd.c
View file @
37be0f5e
...
...
@@ -1283,13 +1283,13 @@ static void hcd_endpoint_disable (struct usb_device *udev, int endpoint)
if
(
urb
->
status
!=
-
EINPROGRESS
)
continue
;
usb_get_urb
(
urb
);
spin_unlock
(
&
hcd_data_lock
);
spin_unlock
_irqrestore
(
&
hcd_data_lock
,
flags
);
spin_lock
(
&
urb
->
lock
);
spin_lock
_irqsave
(
&
urb
->
lock
,
flags
);
tmp
=
urb
->
status
;
if
(
tmp
==
-
EINPROGRESS
)
urb
->
status
=
-
ESHUTDOWN
;
spin_unlock
(
&
urb
->
lock
);
spin_unlock
_irqrestore
(
&
urb
->
lock
,
flags
);
/* kick hcd unless it's already returning this */
if
(
tmp
==
-
EINPROGRESS
)
{
...
...
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