socket_rpmsg: fix conn->psock NULL in ept_cb
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
6b5a7a73ba
commit
d0486be2a3
@ -502,8 +502,6 @@ static void rpmsg_socket_ns_bind(FAR struct rpmsg_device *rdev,
|
||||
return;
|
||||
}
|
||||
|
||||
rpmsg_socket_ns_bound(&new->ept);
|
||||
|
||||
strcpy(new->rpaddr.rp_cpu, rpmsg_get_cpuname(rdev));
|
||||
strcpy(new->rpaddr.rp_name, name + RPMSG_SOCKET_NAME_PREFIX_LEN);
|
||||
|
||||
@ -527,6 +525,8 @@ static void rpmsg_socket_ns_bind(FAR struct rpmsg_device *rdev,
|
||||
|
||||
rpmsg_socket_unlock(&server->recvlock);
|
||||
|
||||
rpmsg_socket_ns_bound(&new->ept);
|
||||
|
||||
rpmsg_socket_post(&server->recvsem);
|
||||
rpmsg_socket_pollnotify(server, POLLIN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user