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
f0afcd40
Commit
f0afcd40
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 whiteheat driver
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
c4c3ce8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.c
+4
-4
No files found.
drivers/usb/serial/whiteheat.c
View file @
f0afcd40
...
@@ -680,7 +680,7 @@ static void whiteheat_close(struct usb_serial_port *port, struct file * filp)
...
@@ -680,7 +680,7 @@ static void whiteheat_close(struct usb_serial_port *port, struct file * filp)
list_for_each_safe
(
tmp
,
tmp2
,
&
info
->
rx_urbs_submitted
)
{
list_for_each_safe
(
tmp
,
tmp2
,
&
info
->
rx_urbs_submitted
)
{
wrap
=
list_entry
(
tmp
,
struct
whiteheat_urb_wrap
,
list
);
wrap
=
list_entry
(
tmp
,
struct
whiteheat_urb_wrap
,
list
);
urb
=
wrap
->
urb
;
urb
=
wrap
->
urb
;
usb_
unlink
_urb
(
urb
);
usb_
kill
_urb
(
urb
);
list_del
(
tmp
);
list_del
(
tmp
);
list_add
(
tmp
,
&
info
->
rx_urbs_free
);
list_add
(
tmp
,
&
info
->
rx_urbs_free
);
}
}
...
@@ -691,7 +691,7 @@ static void whiteheat_close(struct usb_serial_port *port, struct file * filp)
...
@@ -691,7 +691,7 @@ static void whiteheat_close(struct usb_serial_port *port, struct file * filp)
list_for_each_safe
(
tmp
,
tmp2
,
&
info
->
tx_urbs_submitted
)
{
list_for_each_safe
(
tmp
,
tmp2
,
&
info
->
tx_urbs_submitted
)
{
wrap
=
list_entry
(
tmp
,
struct
whiteheat_urb_wrap
,
list
);
wrap
=
list_entry
(
tmp
,
struct
whiteheat_urb_wrap
,
list
);
urb
=
wrap
->
urb
;
urb
=
wrap
->
urb
;
usb_
unlink
_urb
(
urb
);
usb_
kill
_urb
(
urb
);
list_del
(
tmp
);
list_del
(
tmp
);
list_add
(
tmp
,
&
info
->
tx_urbs_free
);
list_add
(
tmp
,
&
info
->
tx_urbs_free
);
}
}
...
@@ -1344,7 +1344,7 @@ static void stop_command_port(struct usb_serial *serial)
...
@@ -1344,7 +1344,7 @@ static void stop_command_port(struct usb_serial *serial)
spin_lock_irqsave
(
&
command_info
->
lock
,
flags
);
spin_lock_irqsave
(
&
command_info
->
lock
,
flags
);
command_info
->
port_running
--
;
command_info
->
port_running
--
;
if
(
!
command_info
->
port_running
)
if
(
!
command_info
->
port_running
)
usb_
unlink
_urb
(
command_port
->
read_urb
);
usb_
kill
_urb
(
command_port
->
read_urb
);
spin_unlock_irqrestore
(
&
command_info
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
command_info
->
lock
,
flags
);
}
}
...
@@ -1372,7 +1372,7 @@ static int start_port_read(struct usb_serial_port *port)
...
@@ -1372,7 +1372,7 @@ static int start_port_read(struct usb_serial_port *port)
list_for_each_safe
(
tmp
,
tmp2
,
&
info
->
rx_urbs_submitted
)
{
list_for_each_safe
(
tmp
,
tmp2
,
&
info
->
rx_urbs_submitted
)
{
wrap
=
list_entry
(
tmp
,
struct
whiteheat_urb_wrap
,
list
);
wrap
=
list_entry
(
tmp
,
struct
whiteheat_urb_wrap
,
list
);
urb
=
wrap
->
urb
;
urb
=
wrap
->
urb
;
usb_
unlink
_urb
(
urb
);
usb_
kill
_urb
(
urb
);
list_del
(
tmp
);
list_del
(
tmp
);
list_add
(
tmp
,
&
info
->
rx_urbs_free
);
list_add
(
tmp
,
&
info
->
rx_urbs_free
);
}
}
...
...
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