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
fda616fe
Commit
fda616fe
authored
Jul 29, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Jul 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix race condition in usblp_write
- fix timeout handling
parent
bb672f57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/usb/class/usblp.c
drivers/usb/class/usblp.c
+6
-0
No files found.
drivers/usb/class/usblp.c
View file @
fda616fe
...
@@ -626,6 +626,12 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t
...
@@ -626,6 +626,12 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t
}
}
}
}
remove_wait_queue
(
&
usblp
->
wait
,
&
wait
);
remove_wait_queue
(
&
usblp
->
wait
,
&
wait
);
if
(
!
timeout
)
{
/* we timed out and need to bail out cleanly */
usb_unlink_urb
(
usblp
->
writeurb
);
return
writecount
?
writecount
:
-
EIO
;
}
}
}
down
(
&
usblp
->
sem
);
down
(
&
usblp
->
sem
);
...
...
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