Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122775
b: refs/heads/master
c: b88a2a2
h: refs/heads/master
i:
  122773: db526dd
  122771: 8c8d673
  122767: 6c10917
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Dec 19, 2008
1 parent 4b2a326 commit 627b0a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 3de77cf23e9a19b9fc28e3b29371308325428c39
refs/heads/master: b88a2a22c6670c31586d1a716255eae4c320b363
10 changes: 5 additions & 5 deletions trunk/drivers/net/wireless/zd1201.c
Original file line number Diff line number Diff line change
Expand Up @@ -1841,10 +1841,6 @@ static void zd1201_disconnect(struct usb_interface *interface)
if (!zd)
return;
usb_set_intfdata(interface, NULL);
if (zd->dev) {
unregister_netdev(zd->dev);
free_netdev(zd->dev);
}

hlist_for_each_entry_safe(frag, node, node2, &zd->fraglist, fnode) {
hlist_del_init(&frag->fnode);
Expand All @@ -1860,7 +1856,11 @@ static void zd1201_disconnect(struct usb_interface *interface)
usb_kill_urb(zd->rx_urb);
usb_free_urb(zd->rx_urb);
}
kfree(zd);

if (zd->dev) {
unregister_netdev(zd->dev);
free_netdev(zd->dev);
}
}

#ifdef CONFIG_PM
Expand Down

0 comments on commit 627b0a0

Please sign in to comment.