projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb94d3
)
Bluetooth: fix error return code in rfcomm_add_listener()
author
Wei Yongjun
<
[email protected]
>
Wed, 20 Mar 2013 12:23:37 +0000
(20:23 +0800)
committer
Gustavo Padovan
<
[email protected]
>
Wed, 20 Mar 2013 17:17:52 +0000
(14:17 -0300)
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Gustavo Padovan <
[email protected]
>
net/bluetooth/rfcomm/core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/rfcomm/core.c
b/net/bluetooth/rfcomm/core.c
index ba93df2af71f0de53ebfe582e3f32eab2b4ba321..ca957d34b0c89fa29341a179ee16e325ac226e55 100644
(file)
--- a/
net/bluetooth/rfcomm/core.c
+++ b/
net/bluetooth/rfcomm/core.c
@@
-2004,8
+2004,10
@@
static int rfcomm_add_listener(bdaddr_t *ba)
/* Add listening session */
s = rfcomm_session_add(sock, BT_LISTEN);
- if (!s)
+ if (!s) {
+ err = -ENOMEM;
goto failed;
+ }
return 0;
failed: