Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315678
b: refs/heads/master
c: 4b10b27
h: refs/heads/master
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Jul 11, 2012
1 parent f730e9f commit 5c72f98
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 9f1db00cdc9429593a887c20fb4372a6fb82a96c
refs/heads/master: 4b10b274e22ca6df1cda2fccf3870b8586feec15
4 changes: 4 additions & 0 deletions trunk/include/net/bluetooth/l2cap.h
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,15 @@ enum {

static inline void l2cap_chan_hold(struct l2cap_chan *c)
{
BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->refcnt));

atomic_inc(&c->refcnt);
}

static inline void l2cap_chan_put(struct l2cap_chan *c)
{
BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->refcnt));

if (atomic_dec_and_test(&c->refcnt))
kfree(c);
}
Expand Down

0 comments on commit 5c72f98

Please sign in to comment.