diff options
-rw-r--r-- | net/bluetooth/l2cap_core.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 56f5c0e3164..a8d69aba39f 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -5187,7 +5187,8 @@ done: | |||
5187 | l2cap_chan_unlock(chan); | 5187 | l2cap_chan_unlock(chan); |
5188 | } | 5188 | } |
5189 | 5189 | ||
5190 | static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, struct sk_buff *skb) | 5190 | static void l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, |
5191 | struct sk_buff *skb) | ||
5191 | { | 5192 | { |
5192 | struct l2cap_chan *chan; | 5193 | struct l2cap_chan *chan; |
5193 | 5194 | ||
@@ -5204,12 +5205,10 @@ static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, str | |||
5204 | goto drop; | 5205 | goto drop; |
5205 | 5206 | ||
5206 | if (!chan->ops->recv(chan, skb)) | 5207 | if (!chan->ops->recv(chan, skb)) |
5207 | return 0; | 5208 | return; |
5208 | 5209 | ||
5209 | drop: | 5210 | drop: |
5210 | kfree_skb(skb); | 5211 | kfree_skb(skb); |
5211 | |||
5212 | return 0; | ||
5213 | } | 5212 | } |
5214 | 5213 | ||
5215 | static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, | 5214 | static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, |