nuttx/input: fix uinput_rpmsg_device_destroy crash
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
parent
324aa7d17f
commit
26f996b927
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue