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
3c3fbd60
Commit
3c3fbd60
authored
Apr 13, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: add better check to prevent oops in hcd_unlink_urb()
parent
37be0f5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/usb/core/hcd.c
drivers/usb/core/hcd.c
+1
-1
No files found.
drivers/usb/core/hcd.c
View file @
3c3fbd60
...
...
@@ -1229,7 +1229,7 @@ static int hcd_unlink_urb (struct urb *urb)
spin_unlock
(
&
hcd_data_lock
);
spin_unlock_irqrestore
(
&
urb
->
lock
,
flags
);
bye:
if
(
retval
&&
sys
)
if
(
retval
&&
sys
&&
sys
->
driver
)
dev_dbg
(
sys
,
"hcd_unlink_urb %p fail %d
\n
"
,
urb
,
retval
);
return
retval
;
}
...
...
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