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: <aSfoeE0y_L0QHXw7@stanley.mountain>
Date: Thu, 27 Nov 2025 08:58:16 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Tomasz Sadowski <tsdwski@...il.com>
Cc: Dave Penkler <dpenkler@...il.com>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] staging: fluke_gpib: use kzalloc instead of kmalloc +
 memset

On Wed, Nov 26, 2025 at 09:45:49PM +0100, Tomasz Sadowski wrote:
> v2:
>  - Add proper commit description
>  - No changes in patch
> 

This stuff needs to go under the --- cut off line.

> Use kzalloc() instead of kmalloc() + memset() to simplify memory allocation.
> 
> Also use sizeof(*board->private_data) instead of repeating the struct name.
> This avoids duplication and keeps the code correct if the struct name
> changes in the future.
> 
> Signed-off-by: Tomasz Sadowski <tsdwski@...il.com>
> ---
  ^^^

Here.

regards,
dan carpenter


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ