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
d2e1a8d0
Commit
d2e1a8d0
authored
Sep 08, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: fix usb_unlink_urb() usage in pl2303 driver
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
03ef9d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
drivers/usb/serial/pl2303.c
drivers/usb/serial/pl2303.c
+3
-18
No files found.
drivers/usb/serial/pl2303.c
View file @
d2e1a8d0
...
...
@@ -621,7 +621,6 @@ static void pl2303_close (struct usb_serial_port *port, struct file *filp)
struct
pl2303_private
*
priv
=
usb_get_serial_port_data
(
port
);
unsigned
long
flags
;
unsigned
int
c_cflag
;
int
result
;
int
bps
;
long
timeout
;
wait_queue_t
wait
;
\
...
...
@@ -666,23 +665,9 @@ static void pl2303_close (struct usb_serial_port *port, struct file *filp)
/* shutdown our urbs */
dbg
(
"%s - shutting down urbs"
,
__FUNCTION__
);
result
=
usb_unlink_urb
(
port
->
write_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (write_urb)"
" failed with reason: %d"
,
__FUNCTION__
,
result
);
result
=
usb_unlink_urb
(
port
->
read_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (read_urb) "
"failed with reason: %d"
,
__FUNCTION__
,
result
);
result
=
usb_unlink_urb
(
port
->
interrupt_in_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (interrupt_in_urb)"
" failed with reason: %d"
,
__FUNCTION__
,
result
);
usb_kill_urb
(
port
->
write_urb
);
usb_kill_urb
(
port
->
read_urb
);
usb_kill_urb
(
port
->
interrupt_in_urb
);
if
(
port
->
tty
)
{
c_cflag
=
port
->
tty
->
termios
->
c_cflag
;
...
...
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