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
nexedi
linux
Commits
d5e50611
Commit
d5e50611
authored
Nov 10, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: fix 2 locking bugs in usbtest.c as found by sparse
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
8fd5592c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/usb/misc/usbtest.c
drivers/usb/misc/usbtest.c
+4
-2
No files found.
drivers/usb/misc/usbtest.c
View file @
d5e50611
...
...
@@ -1355,7 +1355,7 @@ static void iso_callback (struct urb *urb, struct pt_regs *regs)
"iso test, %lu errors
\n
"
,
ctx
->
errors
);
complete
(
&
ctx
->
done
);
}
else
}
done:
spin_unlock
(
&
ctx
->
lock
);
}
...
...
@@ -1457,8 +1457,10 @@ test_iso_queue (struct usbtest_dev *dev, struct usbtest_param *param,
status
=
usb_submit_urb
(
urbs
[
i
],
SLAB_ATOMIC
);
if
(
status
<
0
)
{
ERROR
(
dev
,
"submit iso[%d], error %d
\n
"
,
i
,
status
);
if
(
i
==
0
)
if
(
i
==
0
)
{
spin_unlock_irq
(
&
context
.
lock
);
goto
fail
;
}
simple_free_urb
(
urbs
[
i
]);
context
.
pending
--
;
...
...
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