[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAA8EJpqfssbS8VPmBHv6Y26ubJ-mG69tm+yz68OmYBA5_bP9Gw@mail.gmail.com>
Date: Fri, 6 Jan 2023 10:08:56 +0200
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Jiasheng Jiang <jiasheng@...as.ac.cn>
Cc: robdclark@...il.com, quic_abhinavk@...cinc.com, sean@...rly.run,
airlied@...il.com, sumit.semwal@...aro.org,
christian.koenig@....com, linux-arm-msm@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, linaro-mm-sig@...ts.linaro.org
Subject: Re: [PATCH] drm/msm: Add missing check and destroy for alloc_ordered_workqueue
On Fri, 6 Jan 2023 at 03:38, Jiasheng Jiang <jiasheng@...as.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@...as.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
Powered by blists - more mailing lists