This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 26f996b927e70afaff8433a084b14918d4626018
Author: yintao <[email protected]>
AuthorDate: Mon Aug 7 21:49:49 2023 +0800

    nuttx/input: fix uinput_rpmsg_device_destroy crash
    
    Signed-off-by: yintao <[email protected]>
---
 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;
         }

Reply via email to