mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "net: qrtr: Return -ENODEV error code if port not found"
This commit is contained in:
commit
dbc71214fb
1 changed files with 4 additions and 2 deletions
|
|
@ -822,8 +822,10 @@ int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len)
|
|||
__pm_wakeup_event(node->ws, 0);
|
||||
} else {
|
||||
ipc = qrtr_port_lookup(cb->dst_port);
|
||||
if (!ipc)
|
||||
goto err;
|
||||
if (!ipc) {
|
||||
kfree_skb(skb);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (sock_queue_rcv_skb(&ipc->sk, skb))
|
||||
goto err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue