diff options
author | Thomas Hellstrom <[email protected]> | 2018-03-21 10:18:38 +0100 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2018-03-21 10:52:01 +0100 |
commit | 73a88250b70954a8f27c2444e1c2411bba3c29d9 (patch) | |
tree | d4347a5a40c693af235e082bac3f7affeeb8b593 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 140bcaa23a1c37b694910424075a15e009120dbe (diff) |
drm/vmwgfx: Fix a destoy-while-held mutex problem.
When validating legacy surfaces, the backup bo might be destroyed at
surface validate time. However, the kms resource validation code may have
the bo reserved, so we will destroy a locked mutex. While there shouldn't
be any other users of that mutex when it is destroyed, it causes a lock
leak and thus throws a lockdep error.
Fix this by having the kms resource validation code hold a reference to
the bo while we have it reserved. We do this by introducing a validation
context which might come in handy when the kms code is extended to validate
multiple resources or buffers.
Cc: <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions