From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (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 E133C1E0E0C for ; Sun, 2 Mar 2025 11:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740915645; cv=none; b=XOPG+lK28CG+9LmGGEN7Kv1Z35W7sc5c/fV5K4As8CrZNGfP7QpckRbCFznYuAu8/V6QGGdD+e7RZEOohpvtmPguYdXscJoNiSwUOFypTzZQ1mcJbwiIqMpvjY0WCTzZmb2oneQS2V9HtUSpu+M7BAUoAA5qHGX1Lnd/Nk8xO3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740915645; c=relaxed/simple; bh=ibJpnIMBMfwg+wEixIQ9dxHR74HBmtgjULFkQgeW35E=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=l3rqtyInZTAYd5Xk1+yulAwLPdGfdF1coN2hWvLiGDk32VHj465lgQeVZzrLKR1X/WR8Rs72WHzDTLPAhPloXv2jXJx6auYrt73G0JffjmwfgAvdW8Dw5KfgU3xy7J4gPIJ1OcAAdxoFmtL9SO0u+wEY/tUdRh1TEMPeT+QKAhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=tf3QsNhE; arc=none smtp.client-ip=91.218.175.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tf3QsNhE" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1740915630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=koGqmzgxJVr+i3JPI4Z8o/wAMh9GbzaZsxUAoedZwe0=; b=tf3QsNhEJxFXSLuxp70QnWiRq6yh1U1ASF+RlVj1S6mRnM7tCLnLrogfBusKSCKzIvQARX 67apWnDIijARy09gfyY9L21UIacEz9plULsiytDUpvHfhknuii1Tn3BamsZnoKhr7i3LEt p7dqKcsPjLF59RfbqKSGTnfZuz11P2w= Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: [RESEND PATCH] crypto: bcm - set memory to zero only once X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum In-Reply-To: Date: Sun, 2 Mar 2025 12:40:17 +0100 Cc: "David S. Miller" , Chen Ridong , =?utf-8?Q?Uwe_Kleine-K=C3=B6nig?= , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <91117BEC-B6FC-4FC7-9073-10FAAC13E2FF@linux.dev> References: <20250219111254.2654-2-thorsten.blum@linux.dev> To: Herbert Xu X-Migadu-Flow: FLOW_OUT On 2. Mar 2025, at 07:13, Herbert Xu wrote: > On Wed, Feb 19, 2025 at 12:12:53PM +0100, Thorsten Blum wrote: >> Use kmalloc_array() instead of kcalloc() because sg_init_table() already >> sets the memory to zero. This avoids zeroing the memory twice. >> >> Signed-off-by: Thorsten Blum >> --- >> drivers/crypto/bcm/cipher.c | 24 ++++++++++++------------ >> 1 file changed, 12 insertions(+), 12 deletions(-) > > This patch has already been applied. Please check whether there > is any discrepancy between the applied version and this resend. My bad, I must have missed it in -next. The patches are identical. Thanks, Thorsten