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  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]
Date:   Mon, 8 Aug 2022 09:57:06 +0200
From:   Marc Kleine-Budde <>
To:     Kenneth Lee <>
Subject: Re: [PATCH] can: kvaser_usb: kvaser_usb_hydra: Use kzalloc for
 allocating only one element

On 06.08.2022 22:16:56, Kenneth Lee wrote:
> Use kzalloc(...) rather than kcalloc(1, ...) since because the number of
> elements we are specifying in this case is 1, kzalloc would accomplish the
> same thing and we can simplify. Also refactor how we calculate the sizeof()
> as checkstyle for kzalloc() prefers using the variable we are assigning
> to versus the type of that variable for calculating the size to allocate.
> Signed-off-by: Kenneth Lee <>

Added to can-next/testing.


Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   |  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists