Merge "net: ipc_router: Register services only on client port"
This commit is contained in:
commit
8f4fb8ae38
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue