lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFoFZEKwhAgC4UT7NP1ZaVBj1BjLk79LcUmTg-wSDs7Y+Q@mail.gmail.com>
Date: Tue, 3 Sep 2024 14:37:22 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Riyan Dhiman <riyandhiman14@...il.com>
Cc: linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mmc: core: Calculate size from pointer

On Sun, 1 Sept 2024 at 19:33, Riyan Dhiman <riyandhiman14@...il.com> wrote:
>
> Calculate the size from pointer instead of
> struct to adhere to linux kernel coding style.
>
> Issue reported by checkpatch.
>
> This commit has no functional changes.
>
> Signed-off-by: Riyan Dhiman <riyandhiman14@...il.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/core/block.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
> index 2c9963248fcb..dfd495e86985 100644
> --- a/drivers/mmc/core/block.c
> +++ b/drivers/mmc/core/block.c
> @@ -2484,7 +2484,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
>                 return ERR_PTR(devidx);
>         }
>
> -       md = kzalloc(sizeof(struct mmc_blk_data), GFP_KERNEL);
> +       md = kzalloc(sizeof(*md), GFP_KERNEL);
>         if (!md) {
>                 ret = -ENOMEM;
>                 goto out;
> --
> 2.46.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ