[PATCH] drm/msm: Add missing check and destroy for alloc_ordered_workqueue
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Fri Jan 6 08:08:56 UTC 2023
On Fri, 6 Jan 2023 at 03:38, Jiasheng Jiang <jiasheng at iscas.ac.cn> wrote:
>
> 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.
>
> Fixes: c8afe684c95c ("drm/msm: basic KMS driver for snapdragon")
> Signed-off-by: Jiasheng Jiang <jiasheng at iscas.ac.cn>
Please resend the patch, including freedreno@ to the cc list.
> ---
> drivers/gpu/drm/msm/msm_drv.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
--
With best wishes
Dmitry
More information about the dri-devel
mailing list