[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <i66hmugg7dxs5ncmtky6whqyhg6tsn2mo7ai2xixye357r3sbs@etgmlalph3nw>
Date: Tue, 14 Jan 2025 16:33:22 +0100
From: Carlos Maiolino <cem@...nel.org>
To: Alex Deucher <alexdeucher@...il.com>
Cc: Alex Deucher <alexander.deucher@....com>,
Victor Skvortsov <victor.skvortsov@....com>, amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, Mirsad Todorovac <mtodorovac69@...il.com>,
Christian König <christian.koenig@....com>, Xinhui Pan <Xinhui.Pan@....com>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Zhigang Luo <Zhigang.Luo@....com>, Hawking Zhang <Hawking.Zhang@....com>,
Lijo Lazar <lijo.lazar@....com>, Yunxiang Li <Yunxiang.Li@....com>, Jack Xiao <Jack.Xiao@....com>,
Vignesh Chander <Vignesh.Chander@....com>, Danijel Slivka <danijel.slivka@....com>
Subject: Re: [PATCH v1 1/3] drm/admgpu: replace kmalloc() and memcpy() with
kmemdup()
On Tue, Jan 14, 2025 at 09:27:59AM -0500, Alex Deucher wrote:
> On Tue, Jan 14, 2025 at 5:37 AM Carlos Maiolino <cem@...nel.org> wrote:
> >
> > On Tue, 17 Dec 2024 23:58:10 +0100, Mirsad Todorovac wrote:
> > > The static analyser tool gave the following advice:
> > >
> > > ./drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:1266:7-14: WARNING opportunity for kmemdup
> > >
> > > → 1266 tmp = kmalloc(used_size, GFP_KERNEL);
> > > 1267 if (!tmp)
> > > 1268 return -ENOMEM;
> > > 1269
> > > → 1270 memcpy(tmp, &host_telemetry->body.error_count, used_size);
> > >
> > > [...]
> >
> > Applied to for-next, thanks!
>
> FWIW, I already picked up the amdgpu patch for drm-next on Dec 18th.
>
b4 seems to have ignored that I pulled only the xfs bits :)
Thanks for the heads up Alex.
> Alex
>
> >
> > [1/3] drm/admgpu: replace kmalloc() and memcpy() with kmemdup()
> > (no commit info)
> > [2/3] xfs/libxfs: replace kmalloc() and memcpy() with kmemdup()
> > commit: 9d9b72472631262b35157f1a650f066c0e11c2bb
> > [3/3] btrfs: replace kmalloc() and memcpy() with kmemdup()
> > (no commit info)
> >
> > Best regards,
> > --
> > Carlos Maiolino <cem@...nel.org>
> >
Powered by blists - more mailing lists