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
2149ab5c
Commit
2149ab5c
authored
Apr 29, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix CHECKER found bug in the io_edgeport.c driver
parent
d7a467e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+2
-4
No files found.
drivers/usb/serial/io_edgeport.c
View file @
2149ab5c
...
...
@@ -1356,6 +1356,7 @@ static int edge_write (struct usb_serial_port *port, int from_user, const unsign
}
else
{
memcpy
(
&
fifo
->
fifo
[
fifo
->
head
],
data
,
firsthalf
);
}
usb_serial_debug_data
(
__FILE__
,
__FUNCTION__
,
firsthalf
,
&
fifo
->
fifo
[
fifo
->
head
]);
// update the index and size
fifo
->
head
+=
firsthalf
;
...
...
@@ -1376,16 +1377,13 @@ static int edge_write (struct usb_serial_port *port, int from_user, const unsign
}
else
{
memcpy
(
&
fifo
->
fifo
[
fifo
->
head
],
&
data
[
firsthalf
],
secondhalf
);
}
usb_serial_debug_data
(
__FILE__
,
__FUNCTION__
,
secondhalf
,
&
fifo
->
fifo
[
fifo
->
head
]);
// update the index and size
fifo
->
count
+=
secondhalf
;
fifo
->
head
+=
secondhalf
;
// No need to check for wrap since we can not get to end of fifo in this part
}
if
(
copySize
)
{
usb_serial_debug_data
(
__FILE__
,
__FUNCTION__
,
copySize
,
data
);
}
send_more_port_data
((
struct
edgeport_serial
*
)
usb_get_serial_data
(
port
->
serial
),
edge_port
);
dbg
(
"%s wrote %d byte(s) TxCredits %d, Fifo %d"
,
__FUNCTION__
,
copySize
,
edge_port
->
txCredits
,
fifo
->
count
);
...
...
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