aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-05-05 12:22:09 +0300
committerJassi Brar <[email protected]>2023-05-31 13:26:44 -0500
commit8fe72b76db79d694858e872370df49676bc3be8c (patch)
treeec9258209d71992eaf76b2c9368a0dfdecda155a /tools/perf/scripts/python/intel-pt-events.py
parent884fe9da1b7ccbea31b118f902fbc78f58366b4a (diff)
mailbox: mailbox-test: fix a locking issue in mbox_test_message_write()
There was a bug where this code forgot to unlock the tdev->mutex if the kzalloc() failed. Fix this issue, by moving the allocation outside the lock. Fixes: 2d1e952a2b8e ("mailbox: mailbox-test: Fix potential double-free in mbox_test_message_write()") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Lee Jones <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions