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
f6a258d1
Commit
f6a258d1
authored
Mar 21, 2003
by
David Brownell
Committed by
Greg Kroah-Hartman
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add missing usb_put_urb() after error
This is a multi-part message in MIME format.
parent
f34f794f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/usb/core/hcd.c
drivers/usb/core/hcd.c
+5
-4
No files found.
drivers/usb/core/hcd.c
View file @
f6a258d1
...
...
@@ -1024,9 +1024,7 @@ static int hcd_submit_urb (struct urb *urb, int mem_flags)
*/
urb
->
transfer_flags
|=
URB_NO_DMA_MAP
;
status
=
rh_urb_enqueue
(
hcd
,
urb
);
if
(
status
)
urb_unlink
(
urb
);
return
status
;
goto
done
;
}
/* lower level hcd code should use *_dma exclusively,
...
...
@@ -1051,8 +1049,11 @@ static int hcd_submit_urb (struct urb *urb, int mem_flags)
}
status
=
hcd
->
driver
->
urb_enqueue
(
hcd
,
urb
,
mem_flags
);
if
(
status
)
done:
if
(
status
)
{
usb_put_urb
(
urb
);
urb_unlink
(
urb
);
}
return
status
;
}
...
...
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