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
6b8f5df3
Commit
6b8f5df3
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 kl5kusb105 driver
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
2af16876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kl5kusb105.c
+6
-6
No files found.
drivers/usb/serial/kl5kusb105.c
View file @
6b8f5df3
...
...
@@ -336,12 +336,12 @@ static void klsi_105_shutdown (struct usb_serial *serial)
for
(
j
=
0
;
j
<
NUM_URBS
;
j
++
)
{
if
(
write_urbs
[
j
])
{
/* FIXME - uncomment the following
* usb_
unlink
_urb call when the host
* usb_
kill
_urb call when the host
* controllers get fixed to set
* urb->dev = NULL after the urb is
* finished. Otherwise this call
* oopses. */
/* usb_
unlink
_urb(write_urbs[j]); */
/* usb_
kill
_urb(write_urbs[j]); */
if
(
write_urbs
[
j
]
->
transfer_buffer
)
kfree
(
write_urbs
[
j
]
->
transfer_buffer
);
usb_free_urb
(
write_urbs
[
j
]);
...
...
@@ -467,12 +467,12 @@ static void klsi_105_close (struct usb_serial_port *port, struct file *filp)
err
(
"Disabling read failed (error = %d)"
,
rc
);
/* shutdown our bulk reads and writes */
usb_
unlink_urb
(
port
->
write_urb
);
usb_
unlink_urb
(
port
->
read_urb
);
usb_
kill_urb
(
port
->
write_urb
);
usb_
kill_urb
(
port
->
read_urb
);
/* unlink our write pool */
/* FIXME */
/* wgg - do I need this? I think so. */
usb_
unlink_urb
(
port
->
interrupt_in_urb
);
usb_
kill_urb
(
port
->
interrupt_in_urb
);
info
(
"kl5kusb105 port stats: %ld bytes in, %ld bytes out"
,
priv
->
bytes_in
,
priv
->
bytes_out
);
}
/* klsi_105_close */
...
...
@@ -994,7 +994,7 @@ static int klsi_105_ioctl (struct usb_serial_port *port, struct file * file,
static
void
klsi_105_throttle
(
struct
usb_serial_port
*
port
)
{
dbg
(
"%s - port %d"
,
__FUNCTION__
,
port
->
number
);
usb_
unlink_urb
(
port
->
read_urb
);
usb_
kill_urb
(
port
->
read_urb
);
}
static
void
klsi_105_unthrottle
(
struct
usb_serial_port
*
port
)
...
...
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