Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e9aa795a
Commit
e9aa795a
authored
Jan 23, 2006
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers
Signed-off-by:
Greg Kroah-Hartman
<
gregkh@suse.de
>
parent
682d4c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
drivers/usb/core/urb.c
drivers/usb/core/urb.c
+1
-0
No files found.
drivers/usb/core/urb.c
View file @
e9aa795a
...
@@ -468,6 +468,7 @@ int usb_unlink_urb(struct urb *urb)
...
@@ -468,6 +468,7 @@ int usb_unlink_urb(struct urb *urb)
*/
*/
void
usb_kill_urb
(
struct
urb
*
urb
)
void
usb_kill_urb
(
struct
urb
*
urb
)
{
{
might_sleep
();
if
(
!
(
urb
&&
urb
->
dev
&&
urb
->
dev
->
bus
&&
urb
->
dev
->
bus
->
op
))
if
(
!
(
urb
&&
urb
->
dev
&&
urb
->
dev
->
bus
&&
urb
->
dev
->
bus
->
op
))
return
;
return
;
spin_lock_irq
(
&
urb
->
lock
);
spin_lock_irq
(
&
urb
->
lock
);
...
...
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