aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJohn Bates <[email protected]>2020-02-20 14:53:19 -0800
committerGerd Hoffmann <[email protected]>2020-02-24 15:45:34 +0100
commitfbb30168c7395b9cfeb9e6f7b0c0bca854a6552d (patch)
treecf8c61d6b684676f6812793271ffaa09ddee15a8 /tools/perf/util/trace-event-scripting.c
parentdde2bb2da01e96c17f0a44b4a3cf72a30e66e3ef (diff)
drm/virtio: fix resource id creation race
The previous code was not thread safe and caused undefined behavior from spurious duplicate resource IDs. In this patch, an atomic_t is used instead. We no longer see any duplicate IDs in tests with this change. Fixes: 16065fcdd19d ("drm/virtio: do NOT reuse resource ids") Signed-off-by: John Bates <[email protected]> Reviewed-by: Chia-I Wu <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions