nuttx/input: fix uinput_rpmsg_device_destroy crash

Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
yintao 2023-08-07 21:49:49 +08:00 committed by Xiang Xiao
parent 324aa7d17f
commit 26f996b927
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ static void uinput_rpmsg_device_destroy(FAR struct rpmsg_device *rdev,
if (ept->rdev == rdev) if (ept->rdev == rdev)
{ {
list_delete(&ept->node); list_delete(&ept->node);
rpmsg_destroy_ept(priv); rpmsg_destroy_ept(&ept->ept);
kmm_free(ept); kmm_free(ept);
return; return;
} }