[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aE-ML8rLXnLaqHVA@casper.infradead.org>
Date: Mon, 16 Jun 2025 04:14:55 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Yunshui Jiang <jiangyunshui@...inos.cn>
Cc: alexander.deucher@....com, chriistian.koenig@....com,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/amdgpu: use kmalloc_array() instead of kmalloc()
On Mon, Jun 16, 2025 at 10:55:59AM +0800, Yunshui Jiang wrote:
> @@ -2719,7 +2719,7 @@ static int amdgpu_ras_realloc_eh_data_space(struct amdgpu_device *adev,
> unsigned int old_space = data->count + data->space_left;
> unsigned int new_space = old_space + pages;
> unsigned int align_space = ALIGN(new_space, 512);
> - void *bps = kmalloc(align_space * sizeof(*data->bps), GFP_KERNEL);
> + void *bps = kmalloc(align_space, sizeof(*data->bps), GFP_KERNEL);
... did you compile this?
Powered by blists - more mailing lists