gpu: host1x: Add locking to syncpt
Currently syncpoints are not locked by mutex and this causes races if we are aggressively freeing and allocating syncpoints. This patch adds missing mutex protection to syncpoint structures. Signed-off-by: NArto Merilainen <amerilainen@nvidia.com> Reviewed-by: NShridhar Rasal <srasal@nvidia.com> Signed-off-by: NMikko Perttunen <mperttunen@nvidia.com> [treding@nvidia.com: use better label names, don't reset local variable] Signed-off-by: NThierry Reding <treding@nvidia.com>
Showing
想要评论请 注册 或 登录