From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [176.9.242.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 870DC1A8F93; Mon, 7 Apr 2025 08:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=176.9.242.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744015157; cv=none; b=BPey8GhGkNspHbRebnEUaqeJYDWpOUcH5bcg3UX9Q6C+ckcLwLUPviVZiYALtwupSglWU3NRsWQxBu5PEzsPFC1HSp8+Q7doXjHq4o+CbGAOpByADHUhcn+g+xqkDH1EdortJyT9WnPh9pg3yysIU2jaY2MEE9OAGdGkBgJhPg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744015157; c=relaxed/simple; bh=L7pucbBLVRTuwmCZY209YVM8b1EvZuSLM0fbQ0DIgGk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OYx9VBOr/AOSHhAaAaD0mrZ/BCBezst532AWgxY3HfqobsXZk8l4bRl3UEKdMfel5DyCfP9LaTfT/BtSiFH+URSuy7tR5GqblQzwGXLtt4QzXY9ED8C4niTV/XTQhDL/swtPlO8Oa+8NsSwrWBvhiiH/e+afzZFhgaQqazVUlu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=176.9.242.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id A5BF32C05257; Mon, 7 Apr 2025 10:39:05 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id D785C30EC6; Mon, 7 Apr 2025 10:39:10 +0200 (CEST) Date: Mon, 7 Apr 2025 10:39:10 +0200 From: Lukas Wunner To: Thorsten Blum Cc: David Howells , Ignat Korchagin , Herbert Xu , "David S. Miller" , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH] crypto: x509 - Replace kmalloc() + NUL-termination with kzalloc() Message-ID: References: <20250407082247.741684-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250407082247.741684-1-thorsten.blum@linux.dev> On Mon, Apr 07, 2025 at 10:22:47AM +0200, Thorsten Blum wrote: > Use kzalloc() to zero out the one-element array instead of using > kmalloc() followed by a manual NUL-termination. > > No functional changes intended. > > Signed-off-by: Thorsten Blum Reviewed-by: Lukas Wunner