Skip to content
Commit 643b7d08 authored by 蒋家盛's avatar 蒋家盛 Committed by Dmitry Baryshkov
Browse files

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: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: default avatarDmitry 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: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent d839f081
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment