Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211419
b: refs/heads/master
c: fad003b
h: refs/heads/master
i:
  211417: 774fe16
  211415: 65be8ef
v: v3
  • Loading branch information
Gustavo F. Padovan committed Sep 30, 2010
1 parent 823ed1a commit 633621e
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: ccbb84af28594e19fd4bf27ff2828c80d03b6081
refs/heads/master: fad003b6c8e3d944d4453fd569b0702ef1af82b3
4 changes: 4 additions & 0 deletions trunk/net/bluetooth/rfcomm/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ static void rfcomm_sk_data_ready(struct rfcomm_dlc *d, struct sk_buff *skb)
static void rfcomm_sk_state_change(struct rfcomm_dlc *d, int err)
{
struct sock *sk = d->owner, *parent;
unsigned long flags;

if (!sk)
return;

BT_DBG("dlc %p state %ld err %d", d, d->state, err);

local_irq_save(flags);
bh_lock_sock(sk);

if (err)
Expand All @@ -108,6 +111,7 @@ static void rfcomm_sk_state_change(struct rfcomm_dlc *d, int err)
}

bh_unlock_sock(sk);
local_irq_restore(flags);

if (parent && sock_flag(sk, SOCK_ZAPPED)) {
/* We have to drop DLC lock here, otherwise
Expand Down

0 comments on commit 633621e

Please sign in to comment.