From: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
To: Yunshui Jiang <jiangyunshui@kylinos.cn>, willy@infradead.org
Cc: alexander.deucher@amd.com, chriistian.koenig@amd.com,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] drm/amdgpu: use kmalloc_array() instead of kmalloc()
Date: Wed, 23 Jul 2025 18:48:52 -0700 [thread overview]
Message-ID: <36da45e3-20e9-4ffd-9ab0-3f3804942eb9@oss.qualcomm.com> (raw)
In-Reply-To: <20250724013754.3429608-1-jiangyunshui@kylinos.cn>
On 7/23/2025 6:37 PM, Yunshui Jiang wrote:
> Use kmalloc_array() instead of kmalloc() with multiplication.
> kmalloc_array() is a safer way because of its multiply overflow check.
>
> Signed-off-by: Yunshui Jiang <jiangyunshui@kylinos.cn>
> ---
1) When you post a new version, you should add a revision history "after the
cut" so that folks know what changed
2) The new version should be sent as a separate thread; don't make the new
version In-Reply-To the previous version
next prev parent reply other threads:[~2025-07-24 1:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 2:55 [PATCH] " Yunshui Jiang
2025-06-16 3:14 ` Matthew Wilcox
2025-07-24 1:37 ` [PATCH v2] " Yunshui Jiang
2025-07-24 1:48 ` Jeff Johnson [this message]
2025-06-16 7:30 ` [PATCH] " kernel test robot
2025-07-04 3:30 [PATCH v2] " Yunshui Jiang
2025-07-24 6:29 Yunshui Jiang
2025-07-29 18:58 ` Deucher, Alexander
2025-09-18 7:12 [PATCH v2] drm/amdgpu: Use " Rahul Kumar
2025-09-22 13:59 ` Kuehling, Felix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36da45e3-20e9-4ffd-9ab0-3f3804942eb9@oss.qualcomm.com \
--to=jeff.johnson@oss.qualcomm.com \
--cc=alexander.deucher@amd.com \
--cc=chriistian.koenig@amd.com \
--cc=jiangyunshui@kylinos.cn \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®