diff options
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r-- | net/bluetooth/6lowpan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 0920cb6ed572..5d3e6202da3d 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c | |||
@@ -950,6 +950,9 @@ static void chan_suspend_cb(struct l2cap_chan *chan) | |||
950 | 950 | ||
951 | BT_DBG("chan %p conn %p skb %p", chan, chan->conn, skb); | 951 | BT_DBG("chan %p conn %p skb %p", chan, chan->conn, skb); |
952 | 952 | ||
953 | if (!skb) | ||
954 | return; | ||
955 | |||
953 | lowpan_cb(skb)->status = -EAGAIN; | 956 | lowpan_cb(skb)->status = -EAGAIN; |
954 | } | 957 | } |
955 | 958 | ||
@@ -959,6 +962,9 @@ static void chan_resume_cb(struct l2cap_chan *chan) | |||
959 | 962 | ||
960 | BT_DBG("chan %p conn %p skb %p", chan, chan->conn, skb); | 963 | BT_DBG("chan %p conn %p skb %p", chan, chan->conn, skb); |
961 | 964 | ||
965 | if (!skb) | ||
966 | return; | ||
967 | |||
962 | lowpan_cb(skb)->status = 0; | 968 | lowpan_cb(skb)->status = 0; |
963 | } | 969 | } |
964 | 970 | ||