mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
467233a4ac
The rpmsg_dev_remove() in rpmsg_core is the place for releasing
this default endpoint.
So need to avoid destroying the default endpoint in
rpmsg_chrdev_eptdev_destroy(), this should be the same as
rpmsg_eptdev_release(). Otherwise there will be double destroy
issue that ept->refcount report warning:
refcount_t: underflow; use-after-free.
Call trace:
refcount_warn_saturate+0xf8/0x150
virtio_rpmsg_destroy_ept+0xd4/0xec
rpmsg_dev_remove+0x60/0x70
The issue can be reproduced by stopping remoteproc before
closing the /dev/rpmsgX.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mtk_rpmsg.c | ||
qcom_glink_native.c | ||
qcom_glink_native.h | ||
qcom_glink_rpm.c | ||
qcom_glink_smem.c | ||
qcom_glink_ssr.c | ||
qcom_smd.c | ||
rpmsg_char.c | ||
rpmsg_char.h | ||
rpmsg_core.c | ||
rpmsg_ctrl.c | ||
rpmsg_internal.h | ||
rpmsg_ns.c | ||
virtio_rpmsg_bus.c |