Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tee: fix unbalanced context refcount in register shm from fd
Successful registration of a memory reference in the scope of a TEE content must increase the context refcount. This change adds this missing refcount increase. The context refcount is already decremented when such shm reference is freed by its owner, in tee_shm_release(), hence current unbalance refcount before this path is applied. Fixes: 9f9806e ("tee: new ioctl to a register tee_shm from a dmabuf file descriptor") Signed-off-by: Etienne Carriere <[email protected]> Tested-by: Etienne Carriere <[email protected]> (Qemu armv7/v8) Acked-by: Jens Wiklander <[email protected]>
- Loading branch information
94c2f2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correction in the commit message:
Fixes: 9f9806e ("tee: new ioctl to a register tee_shm from a dmabuf file descriptor")
should be
Fixes: 28f2ad9c ("tee: new ioctl to a register tee_shm from a dmabuf file descriptor")