Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: fix race in mobj_reg_shm_get_by_cookie()
Until this patch in mobj_reg_shm_get_by_cookie() there's a small window after cpu_spin_unlock_xrestore() before the reference counter is increased with mobj_get(). Fix that by calling mobj_get() before unlocking reg_shm_slist_lock. Fixes: b965149 ("core: reference count struct mobj") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
- Loading branch information