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

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

Bluetooth: Fix error value for wrong FCS.

parent 57d3b22b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3423,7 +3423,7 @@ static int l2cap_check_fcs(struct l2cap_pinfo *pi, struct sk_buff *skb)
		our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size);

		if (our_fcs != rcv_fcs)
			return -EINVAL;
			return -EBADMSG;
	}
	return 0;
}