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; }