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
da44e962
Commit
da44e962
authored
Dec 17, 2002
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Dec 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix an unlinking race in speedtouch driver
checking for -EINPROGRESS is wrong.
parent
5e03c83e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+2
-4
No files found.
drivers/usb/misc/speedtouch.c
View file @
da44e962
...
...
@@ -852,8 +852,7 @@ static int udsl_usb_data_exit (struct udsl_instance_data *instance)
if
((
!
ctx
->
urb
)
||
(
!
ctx
->
skb
))
continue
;
if
(
ctx
->
urb
->
status
==
-
EINPROGRESS
)
usb_unlink_urb
(
ctx
->
urb
);
usb_unlink_urb
(
ctx
->
urb
);
usb_free_urb
(
ctx
->
urb
);
kfree_skb
(
ctx
->
skb
);
...
...
@@ -863,8 +862,7 @@ static int udsl_usb_data_exit (struct udsl_instance_data *instance)
for
(
i
=
0
;
i
<
UDSL_NUMBER_SND_URBS
;
i
++
)
{
struct
udsl_usb_send_data_context
*
ctx
=
&
(
instance
->
send_ctx
[
i
]);
if
(
ctx
->
urb
->
status
==
-
EINPROGRESS
)
usb_unlink_urb
(
ctx
->
urb
);
usb_unlink_urb
(
ctx
->
urb
);
if
(
ctx
->
skb
)
ctx
->
vcc
->
pop
(
ctx
->
vcc
,
ctx
->
skb
);
...
...
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