Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104629
b: refs/heads/master
c: ac90e36
h: refs/heads/master
i:
  104627: a7611a9
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent 1b35b20 commit 930e6c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c24f42276b4c4467e82cdd5a941fb7f9400aeea0
refs/heads/master: ac90e36592ea5171c4e70f58b39a782d871a7d9f
2 changes: 1 addition & 1 deletion trunk/drivers/usb/gadget/cdc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int __init cdc_do_config(struct usb_configuration *c)
return status;

status = acm_bind_config(c, 0);
if (status == 0)
if (status < 0)
return status;

return 0;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/usb/gadget/u_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,9 @@ void gserial_cleanup(void)
unsigned i;
struct gs_port *port;

if (!gs_tty_driver)
return;

/* start sysfs and /dev/ttyGS* node removal */
for (i = 0; i < n_ports; i++)
tty_unregister_device(gs_tty_driver, i);
Expand Down

0 comments on commit 930e6c7

Please sign in to comment.