Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254881
b: refs/heads/master
c: 5e2cd08
h: refs/heads/master
i:
  254879: b752890
v: v3
  • Loading branch information
Greg KH authored and David S. Miller committed Jul 8, 2011
1 parent 938aaa7 commit 640fb55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: b1f524e36cb691d20bfdaee423977f1decb81cf6
refs/heads/master: 5e2cd0825a43824827b233d95bc47c0c970e5bef
7 changes: 4 additions & 3 deletions trunk/drivers/net/usb/hso.c
Original file line number Diff line number Diff line change
Expand Up @@ -2421,10 +2421,8 @@ static void hso_free_net_device(struct hso_device *hso_dev)

remove_net_device(hso_net->parent);

if (hso_net->net) {
if (hso_net->net)
unregister_netdev(hso_net->net);
free_netdev(hso_net->net);
}

/* start freeing */
for (i = 0; i < MUX_BULK_RX_BUF_COUNT; i++) {
Expand All @@ -2436,6 +2434,9 @@ static void hso_free_net_device(struct hso_device *hso_dev)
kfree(hso_net->mux_bulk_tx_buf);
hso_net->mux_bulk_tx_buf = NULL;

if (hso_net->net)
free_netdev(hso_net->net);

kfree(hso_dev);
}

Expand Down

0 comments on commit 640fb55

Please sign in to comment.