]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/bluetooth/l2cap.c
Bluetooth: Fix error return value on sendmsg.
authorJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Tue, 22 Jun 2010 16:56:25 +0000 (13:56 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:10 +0000 (10:39 -0700)
commitbc766db2ef3700ae74bdfc88d74b771b97971a24
tree0f9fcdb66a2660168e154c8ff17cbf32ac9a47e0
parentf9dd11b03c5c3cd6bdf2e503400bbc922c898974
Bluetooth: Fix error return value on sendmsg.

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