diff options
| author | 2023-01-09 10:20:38 +0800 | |
|---|---|---|
| committer | 2023-01-18 03:25:18 +0200 | |
| commit | 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0 (patch) | |
| tree | 4959a3eaa44f4e4a8f2779a7d2188e2d0a2ffe49 /scripts/Makefile.thinlto | |
| parent | drm/msm/gem: Add check for kmalloc (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 <jiasheng@iscas.ac.cn>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/517419/
Link: https://lore.kernel.org/r/20230109022038.2163-1-jiasheng@iscas.ac.cn
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
