From 26f996b927e70afaff8433a084b14918d4626018 Mon Sep 17 00:00:00 2001 From: yintao Date: Mon, 7 Aug 2023 21:49:49 +0800 Subject: [PATCH] nuttx/input: fix uinput_rpmsg_device_destroy crash Signed-off-by: yintao --- drivers/input/uinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/uinput.c b/drivers/input/uinput.c index 9453986351..4f6d9ce6ae 100644 --- a/drivers/input/uinput.c +++ b/drivers/input/uinput.c @@ -247,7 +247,7 @@ static void uinput_rpmsg_device_destroy(FAR struct rpmsg_device *rdev, if (ept->rdev == rdev) { list_delete(&ept->node); - rpmsg_destroy_ept(priv); + rpmsg_destroy_ept(&ept->ept); kmm_free(ept); return; }