Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d954b05 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8752ea5b aafeb6b3
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2808,6 +2808,9 @@ int msm_ipc_router_register_server(struct msm_ipc_port *port_ptr,
	if (!port_ptr || !name)
	if (!port_ptr || !name)
		return -EINVAL;
		return -EINVAL;


	if (port_ptr->type != CLIENT_PORT)
		return -EINVAL;

	if (name->addrtype != MSM_IPC_ADDR_NAME)
	if (name->addrtype != MSM_IPC_ADDR_NAME)
		return -EINVAL;
		return -EINVAL;