[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e14e929b-884c-4250-bce8-0c21fe4f1c8f@linaro.org>
Date: Wed, 18 Jan 2023 03:06:29 +0200
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Jiasheng Jiang <jiasheng@...as.ac.cn>, robdclark@...il.com,
quic_abhinavk@...cinc.com, sean@...rly.run, airlied@...il.com,
daniel@...ll.ch, sumit.semwal@...aro.org, christian.koenig@....com
Cc: linux-arm-msm@...r.kernel.org, dri-devel@...ts.freedesktop.org,
freedreno@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, linaro-mm-sig@...ts.linaro.org
Subject: Re: [PATCH] drm/msm/gem: Add check for kmalloc
On 12/12/2022 11:11, Jiasheng Jiang wrote:
> Add the check for the return value of kmalloc in order to avoid
> NULL pointer dereference in copy_from_user.
>
> Fixes: 20224d715a88 ("drm/msm/submit: Move copy_from_user ahead of locking bos")
> Signed-off-by: Jiasheng Jiang <jiasheng@...as.ac.cn>
> ---
> drivers/gpu/drm/msm/msm_gem_submit.c | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
--
With best wishes
Dmitry
Powered by blists - more mailing lists