summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-30 06:27:33 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-30 06:27:32 -0800
commit8f4fb8ae38207ac0e5be8a2d88d045674f1dd248 (patch)
tree65920b0429a52612651019f59a84bb1a8b12da17
parent3a0a78d5f02efcc0d0a8c25e63e857565efee604 (diff)
parent32c229060ca33b816c50eedc136ea2800f9974df (diff)
Merge "net: ipc_router: Register services only on client port"
-rw-r--r--net/ipc_router/ipc_router_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipc_router/ipc_router_core.c b/net/ipc_router/ipc_router_core.c
index 008d034fcf8f..d23799a5b260 100644
--- a/net/ipc_router/ipc_router_core.c
+++ b/net/ipc_router/ipc_router_core.c
@@ -2809,6 +2809,9 @@ int msm_ipc_router_register_server(struct msm_ipc_port *port_ptr,
if (!port_ptr || !name)
return -EINVAL;
+ if (port_ptr->type != CLIENT_PORT)
+ return -EINVAL;
+
if (name->addrtype != MSM_IPC_ADDR_NAME)
return -EINVAL;