Merge "net: ipc_router: Register services only on client port"

This commit is contained in:
Linux Build Service Account 2016-12-30 06:27:33 -08:00 committed by Gerrit - the friendly Code Review server
commit 8f4fb8ae38

View file

@ -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;