Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271691
b: refs/heads/master
c: 6f2e77b
h: refs/heads/master
i:
  271689: c9f880a
  271687: da67fb3
v: v3
  • Loading branch information
Thierry Reding authored and Mauro Carvalho Chehab committed Aug 31, 2011
1 parent 3ca06ee commit b9aa6b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: fc4eab2cbae547fb278c2583b77ee0ff7f5832d3
refs/heads/master: 6f2e77bb955771a7b8de80ea519c1e9a82b864dd
5 changes: 3 additions & 2 deletions trunk/drivers/staging/tm6000/tm6000-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ static int tm6000_usb_probe(struct usb_interface *interface,
mutex_init(&dev->usb_lock);

/* Increment usage count */
tm6000_devused |= 1<<nr;
set_bit(nr, &tm6000_devused);
snprintf(dev->name, 29, "tm6000 #%d", nr);

dev->model = id->driver_info;
Expand Down Expand Up @@ -1287,7 +1287,7 @@ static int tm6000_usb_probe(struct usb_interface *interface,
err:
printk(KERN_ERR "tm6000: Error %d while registering\n", rc);

tm6000_devused &= ~(1<<nr);
clear_bit(nr, &tm6000_devused);
usb_put_dev(usbdev);

kfree(dev);
Expand Down Expand Up @@ -1345,6 +1345,7 @@ static void tm6000_usb_disconnect(struct usb_interface *interface)
tm6000_close_extension(dev);
tm6000_remove_from_devlist(dev);

clear_bit(dev->devno, &tm6000_devused);
kfree(dev);
}

Expand Down

0 comments on commit b9aa6b5

Please sign in to comment.