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] [thread-next>] [day] [month] [year] [list]
Message-ID: <d5d13945-da84-4886-bdc7-9a3ac182b2be@web.de>
Date: Sun, 2 Feb 2025 17:54:14 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Jiasheng Jiang <jiashengjiangcool@...il.com>, linux-scsi@...r.kernel.org,
 GR-QLogic-Storage-Upstream@...vell.com,
 James Bottomley <James.Bottomley@...senPartnership.com>,
 Javed Hasan <jhasan@...vell.com>,
 "Martin K. Petersen" <martin.petersen@...cle.com>,
 Saurav Kashyap <skashyap@...vell.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Arun Easi <arun.easi@...ium.com>,
 Bart Van Assche <bvanassche@....org>,
 Manish Rangankar <manish.rangankar@...ium.com>,
 Nilesh Javali <nilesh.javali@...ium.com>
Subject: Re: [PATCH v2] scsi: qedf: Use kcalloc() and add check for bdt_info

…
> +++ b/drivers/scsi/qedf/qedf_io.c
…
@@ -254,9 +254,7 @@ struct qedf_cmd_mgr *qedf_cmd_mgr_alloc(struct qedf_ctx *qedf)
 	}

 	/* Allocate pool of io_bdts - one for each qedf_ioreq */
…
+	cmgr->io_bdt_pool = kcalloc(num_ios, sizeof(struct io_bdt *), GFP_KERNEL);
…

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.13#n941

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ