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

Commit a20e84a5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: qrtr: Return success if control port is not bound"

parents fde620fe a7b81fb7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1174,6 +1174,10 @@ static int qrtr_local_enqueue(struct qrtr_node *node, struct sk_buff *skb,
	struct sock *sk = skb->sk;

	ipc = qrtr_port_lookup(to->sq_port);
	if (!ipc && to->sq_port == QRTR_PORT_CTRL) {
		kfree_skb(skb);
		return 0;
	}
	if (!ipc || &ipc->sk == skb->sk) { /* do not send to self */
		kfree_skb(skb);
		return -ENODEV;