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

Commit 9acd98bf authored by Seemanta Dutta's avatar Seemanta Dutta
Browse files

msm: camera: Do not increment refcount when buffer is already mapped



When getting the IOVA from camera SMMU driver, if the buffer IOVA is
already mapped, then do not increment the refcount. If refcount is
incremented, when unmapping the buffer, it won't be actually unmapped
because the non zero refcount will prevent it from getting unmapped
from the context bank.

CRs-Fixed: 1108641
Change-Id: I46e114f90d47cc003231e234f6f06d9e1fdca652
Signed-off-by: default avatarSeemanta Dutta <seemanta@codeaurora.org>
parent 56c0a94b
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