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
nexedi
linux
Commits
781aa5f1
Commit
781aa5f1
authored
Oct 12, 2002
by
Greg Kroah-Hartman
Committed by
Linus Torvalds
Oct 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix up previous pl2303 fix.
This returns the proper value, and fixes a memory leak.
parent
4972af26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb-serial.c
+2
-3
No files found.
drivers/usb/serial/usb-serial.c
View file @
781aa5f1
...
...
@@ -1237,7 +1237,6 @@ int usb_serial_probe(struct usb_interface *interface,
}
#if defined(CONFIG_USB_SERIAL_PL2303) || defined(CONFIG_USB_SERIAL_PL2303_MODULE)
#if 1
/* BEGIN HORRIBLE HACK FOR PL2303 */
/* this is needed due to the looney way its endpoints are set up */
if
(((
dev
->
descriptor
.
idVendor
==
PL2303_VENDOR_ID
)
&&
...
...
@@ -1268,11 +1267,11 @@ int usb_serial_probe(struct usb_interface *interface,
*/
if
(
num_bulk_in
==
0
||
num_bulk_out
==
0
)
{
info
(
"PL-2303 hack: descriptors matched but endpoints did not"
);
return
NULL
;
kfree
(
serial
);
return
-
ENODEV
;
}
}
/* END HORRIBLE HACK FOR PL2303 */
#endif
#endif
/* found all that we need */
...
...
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