[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <173685050606.121023.15880715609147802061.b4-ty@kernel.org>
Date: Tue, 14 Jan 2025 11:28:26 +0100
From: Carlos Maiolino <cem@...nel.org>
To: 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>
Cc: Christian König <christian.koenig@....com>,
Xinhui Pan <Xinhui.Pan@....com>, David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>, "Darrick J. Wong" <djwong@...nel.org>,
Chandan Babu R <chandanbabu@...nel.org>, Dave Chinner <dchinner@...hat.com>,
linux-xfs@...r.kernel.org
Subject: Re: [PATCH v1 2/3] xfs/libxfs: replace kmalloc() and memcpy() with
kmemdup()
On Tue, 17 Dec 2024 23:58:12 +0100, Mirsad Todorovac wrote:
> The source static analysis tool gave the following advice:
>
> ./fs/xfs/libxfs/xfs_dir2.c:382:15-22: WARNING opportunity for kmemdup
>
> → 382 args->value = kmalloc(len,
> 383 GFP_KERNEL | __GFP_NOLOCKDEP | __GFP_RETRY_MAYFAIL);
> 384 if (!args->value)
> 385 return -ENOMEM;
> 386
> → 387 memcpy(args->value, name, len);
> 388 args->valuelen = len;
> 389 return -EEXIST;
>
> [...]
Applied to for-next, thanks!
[2/3] xfs/libxfs: replace kmalloc() and memcpy() with kmemdup()
commit: 9d9b72472631262b35157f1a650f066c0e11c2bb
Best regards,
--
Carlos Maiolino <cem@...nel.org>
Powered by blists - more mailing lists