Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8cf25cc1 authored by Chris Lew's avatar Chris Lew
Browse files

rpmsg: glink: spi: Fix idr and channel refcounts



Each kref_put represents a cleanup for an open function. Remove the
extra kref put and rely on transport remove to cleanup any defunct
channels. Remove the idr from the lcid and rcid lists since the idr is
added on the open calls. This prevents any references to the dangling
pointers after cleanup.

Change-Id: I5c78ab17b716f5dea36b5d23ed2888ad5743edbf
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 159dc458
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment