Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc766db2 authored by João Paulo Rechi Vita's avatar João Paulo Rechi Vita Committed by Marcel Holtmann
Browse files

Bluetooth: Fix error return value on sendmsg.



When the socket is in a bad state EBADFD is more appropriate then EINVAL.

Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Acked-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f9dd11b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = -EINVAL;
		err = -EBADFD;
	}

done: