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
a3cd1c05
Commit
a3cd1c05
authored
Sep 11, 2002
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Sep 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix for error handling in microtek
parent
4e505316
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
drivers/usb/image/microtek.c
drivers/usb/image/microtek.c
+14
-5
No files found.
drivers/usb/image/microtek.c
View file @
a3cd1c05
...
...
@@ -583,13 +583,22 @@ static void mts_command_done( struct urb *transfer )
return
;
}
if
(
context
->
data
)
{
if
(
context
->
srb
->
cmnd
[
0
]
==
REQUEST_SENSE
)
{
mts_int_submit_urb
(
transfer
,
context
->
data_pipe
,
context
->
data
,
context
->
srb
->
sense_buffer
,
context
->
data_length
,
context
->
srb
->
use_sg
?
mts_do_sg
:
mts_data_done
);
}
else
mts_get_status
(
transfer
);
mts_data_done
);
}
else
{
if
(
context
->
data
)
{
mts_int_submit_urb
(
transfer
,
context
->
data_pipe
,
context
->
data
,
context
->
data_length
,
context
->
srb
->
use_sg
?
mts_do_sg
:
mts_data_done
);
}
else
{
mts_get_status
(
transfer
);
}
}
return
;
}
...
...
@@ -598,7 +607,7 @@ static void mts_do_sg (struct urb* transfer)
{
struct
scatterlist
*
sg
;
MTS_INT_INIT
();
MTS_DEBUG
(
"Processing fragment %d of %d
\n
"
,
context
->
fragment
,
context
->
srb
->
use_sg
);
if
(
unlikely
(
transfer
->
status
))
{
...
...
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