mirror of
https://github.com/apache/nuttx.git
synced 2026-02-06 04:22:26 +08:00
rpmsgdev: fix export null issue when rpmsgdev init
check rpmsgdev export null or not Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
This commit is contained in:
@@ -163,7 +163,8 @@ static int rpmsgdev_open_handler(FAR struct rpmsg_endpoint *ept,
|
||||
}
|
||||
|
||||
msg->header.result = file_open(&dev->file,
|
||||
export->localpath,
|
||||
export ? export->localpath :
|
||||
strchr(ept->name, '/'),
|
||||
msg->flags, 0);
|
||||
if (msg->header.result < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user