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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 8 Aug 2022 09:57:06 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Kenneth Lee <klee33@...edu>
Cc: wg@...ndegger.com, linux-can@...r.kernel.org,
netdev@...r.kernel.org
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 <klee33@...edu>
Added to can-next/testing.
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
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