Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115781
b: refs/heads/master
c: 29bac7b
h: refs/heads/master
i:
  115779: 3b40e57
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Oct 17, 2008
1 parent 0419c4a commit d288074
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1c9e151b18ade3be5b1865d288a490bff4339e6
refs/heads/master: 29bac7b7661bbbdbbd32bc1e6cedca22f260da7f
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/u_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,13 @@ struct net_device *gether_connect(struct gether *link)
spin_lock(&dev->lock);
dev->port_usb = link;
link->ioport = dev;
if (netif_running(dev->net)) {
if (link->open)
link->open(link);
} else {
if (link->close)
link->close(link);
}
spin_unlock(&dev->lock);

netif_carrier_on(dev->net);
Expand Down

0 comments on commit d288074

Please sign in to comment.