aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@profusion.mobi>2010-06-22 12:56:26 -0400
committerMarcel Holtmann <marcel@holtmann.org>2010-07-21 13:39:10 -0400
commit57d3b22bf56579bb1ab2d6f5020d372c99a7afae (patch)
tree7aa61fe986b528ad82df55d58561ec22893310ba /net/bluetooth
parentbc766db2ef3700ae74bdfc88d74b771b97971a24 (diff)
Bluetooth: Fix error return for l2cap_connect_rsp().
Signed-off-by: João Paulo Rechi Vita <jprvita@profusion.mobi> Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index ac25952538fd..58c81cbb4040 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -2986,11 +2986,11 @@ static inline int l2cap_connect_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hd
2986 if (scid) { 2986 if (scid) {
2987 sk = l2cap_get_chan_by_scid(&conn->chan_list, scid); 2987 sk = l2cap_get_chan_by_scid(&conn->chan_list, scid);
2988 if (!sk) 2988 if (!sk)
2989 return 0; 2989 return -EFAULT;
2990 } else { 2990 } else {
2991 sk = l2cap_get_chan_by_ident(&conn->chan_list, cmd->ident); 2991 sk = l2cap_get_chan_by_ident(&conn->chan_list, cmd->ident);
2992 if (!sk) 2992 if (!sk)
2993 return 0; 2993 return -EFAULT;
2994 } 2994 }
2995 2995
2996 switch (result) { 2996 switch (result) {