rpmsg: Guard against null endpoint ops in destroy
authorChris Lew <clew@codeaurora.org>
Wed, 24 Jun 2020 16:45:19 +0000 (22:15 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 15 Sep 2020 03:51:03 +0000 (03:51 +0000)
commitd5158cda9e7b66fd412815df32e58943b7383f0c
tree2fa6b590e6a088a1e064e016dd36db2a1d936394
parent4fcdaf6e28d11e2f3820d54dd23cd12a47ddd44e
rpmsg: Guard against null endpoint ops in destroy

In RPMSG GLINK the chrdev device will allocate an ept as part of the
rpdev creation. This device will not register endpoint ops even though
it has an allocated ept. Protect against the case where the device is
being destroyed.

Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Link: https://lore.kernel.org/r/1593017121-7953-3-git-send-email-deesin@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/rpmsg_core.c