diff options
author | Jiasheng Jiang <[email protected]> | 2023-01-09 10:20:38 +0800 |
---|---|---|
committer | Dmitry Baryshkov <[email protected]> | 2023-01-18 03:25:18 +0200 |
commit | 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0 (patch) | |
tree | 4959a3eaa44f4e4a8f2779a7d2188e2d0a2ffe49 /tools/perf/scripts/python/futex-contention.py | |
parent | d839f0811a31322c087a859c2b181e2383daa7be (diff) |
drm/msm: Add missing check and destroy for alloc_ordered_workqueue
Add check for the return value of alloc_ordered_workqueue as it may return
NULL pointer.
Moreover, use the destroy_workqueue in the later fails in order to avoid
memory leak.
Signed-off-by: Jiasheng Jiang <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/517419/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions