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
f3a87694
Commit
f3a87694
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 kobil_sct driver
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
6b8f5df3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
drivers/usb/serial/kobil_sct.c
drivers/usb/serial/kobil_sct.c
+6
-8
No files found.
drivers/usb/serial/kobil_sct.c
View file @
f3a87694
...
...
@@ -350,14 +350,13 @@ static void kobil_close (struct usb_serial_port *port, struct file *filp)
{
dbg
(
"%s - port %d"
,
__FUNCTION__
,
port
->
number
);
if
(
port
->
write_urb
){
usb_
unlink_urb
(
port
->
write_urb
);
if
(
port
->
write_urb
)
{
usb_
kill_urb
(
port
->
write_urb
);
usb_free_urb
(
port
->
write_urb
);
port
->
write_urb
=
NULL
;
}
if
(
port
->
interrupt_in_urb
){
usb_unlink_urb
(
port
->
interrupt_in_urb
);
}
if
(
port
->
interrupt_in_urb
)
usb_kill_urb
(
port
->
interrupt_in_urb
);
}
...
...
@@ -458,9 +457,8 @@ static int kobil_write (struct usb_serial_port *port, int from_user,
((
priv
->
device_type
==
KOBIL_ADAPTER_B_PRODUCT_ID
)
&&
(
priv
->
filled
>
3
)
&&
(
priv
->
filled
>=
(
priv
->
buf
[
2
]
+
4
)))
)
{
// stop reading (except TWIN and KAAN SIM)
if
(
(
priv
->
device_type
==
KOBIL_ADAPTER_B_PRODUCT_ID
)
||
(
priv
->
device_type
==
KOBIL_ADAPTER_K_PRODUCT_ID
)
)
{
usb_unlink_urb
(
port
->
interrupt_in_urb
);
}
if
(
(
priv
->
device_type
==
KOBIL_ADAPTER_B_PRODUCT_ID
)
||
(
priv
->
device_type
==
KOBIL_ADAPTER_K_PRODUCT_ID
)
)
usb_kill_urb
(
port
->
interrupt_in_urb
);
todo
=
priv
->
filled
-
priv
->
cur_pos
;
...
...
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