summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-08-02 08:13:57 -0300
committerRay Zhang <rayz@codeaurora.org>2017-05-25 11:22:05 +0800
commitf7d8be4b2cf3ae27f32f0e34da55cd17a3e737e7 (patch)
treeafe7afff1a861ac03bfb7ca2d58f1eb30fc10b9d /tools/perf/scripts/python/netdev-times.py
parent6c7199a66ea8e75a7ca94c1a6c388b84c832204e (diff)
[media] cec: improve locking
- The global lock was used in cec_get_device when it should have used the devnode lock. - cec_put_device also took the global lock, but since the release function takes that lock as well this could lead to a deadlock. Just don't take the lock here since there is no reason for it. - cec_devnode_register() should take the global lock when clearing the bit in the global bitmap. - In cec_devnode_unregister() place the devnode->(un)register tests and assignments under the devnode lock as well: this has to be in a critical block. Change-Id: I229e6136937003f99153028d12780c0162620bef Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Git-commit: 2ab25d35a91098ef0f42d478cc37f6a5591a4ab0 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions