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

Commit 419cee92 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Fix crash in l2cap_chan_send after l2cap_chan_del"

parents 911d1544 672feced
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2453,6 +2453,9 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
	int err;
	struct sk_buff_head seg_queue;

	if (!chan->conn)
		return -ENOTCONN;

	/* Connectionless channel */
	if (chan->chan_type == L2CAP_CHAN_CONN_LESS) {
		skb = l2cap_create_connless_pdu(chan, msg, len, priority);