projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9dd11b
)
Bluetooth: Fix error return value on sendmsg.
author
João Paulo Rechi Vita
<jprvita@profusion.mobi>
Tue, 22 Jun 2010 16:56:25 +0000
(13:56 -0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:10 +0000
(10:39 -0700)
When the socket is in a bad state EBADFD is more appropriate then EINVAL.
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>
net/bluetooth/l2cap.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/l2cap.c
b/net/bluetooth/l2cap.c
index 884b840081ae59eceaadbc3a26839180cf7f7e5b..ac25952538fd87e5ac591801458902120113775f 100644
(file)
--- a/
net/bluetooth/l2cap.c
+++ b/
net/bluetooth/l2cap.c
@@
-1881,7
+1881,7
@@
static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms
default:
BT_DBG("bad state %1.1x", pi->mode);
- err = -E
INVAL
;
+ err = -E
BADFD
;
}
done: