Loading net/qrtr/qrtr.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -684,6 +684,10 @@ static int qrtr_local_enqueue(struct qrtr_node *node, struct sk_buff *skb, struct qrtr_cb *cb; struct qrtr_cb *cb; ipc = qrtr_port_lookup(to->sq_port); 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 */ if (!ipc || &ipc->sk == skb->sk) { /* do not send to self */ kfree_skb(skb); kfree_skb(skb); return -ENODEV; return -ENODEV; Loading Loading
net/qrtr/qrtr.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -684,6 +684,10 @@ static int qrtr_local_enqueue(struct qrtr_node *node, struct sk_buff *skb, struct qrtr_cb *cb; struct qrtr_cb *cb; ipc = qrtr_port_lookup(to->sq_port); 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 */ if (!ipc || &ipc->sk == skb->sk) { /* do not send to self */ kfree_skb(skb); kfree_skb(skb); return -ENODEV; return -ENODEV; Loading