From nobody Tue Feb 10 06:25:19 2026 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 6148E3939AE for ; Fri, 16 Jan 2026 17:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585727; cv=none; b=TnBJD4cMcFPRSrhCbwPlg5y/eJ81k7GBSVv/OaEy/2bvELCe7l3peEal597cDdD1uBZYnyFTuppIpzoKzco3i+E0jPmkfCX5z+8CotX/FyyDU2CxM9otV/pZHBYi2y6xvkReCrbJrr3xvFt3u+M+qqY/Nw8ktdwto6imbdBNy+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585727; c=relaxed/simple; bh=G/l+EL0xAUG5yRkQkjF/AbFUaWUrXNVxC++VNmmISno=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Foc6PYhC7JCrC8tuhvenMP1VYPseSd7lBtR/vDV9i0hxTkt04TtxVkJbr6vmZ0h9rp6w+He5quwkwvPtDTB3FI9cSVouqwRB3pjy0hFfvOc5clPnuk1Uvsui+lXnajuEXfzGR29yBGtit5p/lgzD6kPMpwbmxKopxPdQMNd+xB8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=x5bgL+HL; arc=none smtp.client-ip=185.70.43.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="x5bgL+HL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1768585724; x=1768844924; bh=G/l+EL0xAUG5yRkQkjF/AbFUaWUrXNVxC++VNmmISno=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=x5bgL+HLeYE4a22D/hQe17dpCRz3tBMNFcIt87+2cBjNPqhbzU/SEGam9CG2+gvrT c+gyrk6ycZV6dxIgixB4o4ZTtB3VBKtCQ69pdwuMYeFyJzr+ltx6DtCUA2NyKWLbZr aXiEXrS1bqsywnOhFqid0zmX/xvHjEOekikuK58S/onW2NHfsXB3u9jpAsSn23GaH/ tnEyTfz0uJ23A8xqQHwWm0GpSvmkOzFniN62aem8ORPM/kD4S4Jo2Vae7BBOiSeVwb 3Jazi6o8t5KmS6+Xt8GHv8UzTHRSUYTlb96C+zohIHKD7ZbC6DsG5rGnr+Pl2YubWB z4YuSJLB72Jsw== Date: Fri, 16 Jan 2026 17:48:39 +0000 To: Dave Penkler , Greg Kroah-Hartman , Michael Rubin , Dan Carpenter From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH v3 17/27] gpib: ines: Replace kmalloc/memset to kzalloc in *allocate_private Message-ID: <20260116174647.317256-18-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20260116174647.317256-1-dominik.karol.piatkowski@protonmail.com> References: <20260116174647.317256-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: a9967b65c1a08c764f0e00b346511436a26cd242 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace kmalloc/memset pair to kzalloc in ines_allocate_private. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- v3: - Split commit into smaller pieces - Improve changelog drivers/gpib/ines/ines_gpib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpib/ines/ines_gpib.c b/drivers/gpib/ines/ines_gpib.c index a3cf846fd0f9..bab11b50adaa 100644 --- a/drivers/gpib/ines/ines_gpib.c +++ b/drivers/gpib/ines/ines_gpib.c @@ -657,11 +657,10 @@ static int ines_allocate_private(struct gpib_board *b= oard) { struct ines_priv *priv; =20 - board->private_data =3D kmalloc(sizeof(struct ines_priv), GFP_KERNEL); + board->private_data =3D kzalloc(sizeof(struct ines_priv), GFP_KERNEL); if (!board->private_data) return -1; priv =3D board->private_data; - memset(priv, 0, sizeof(struct ines_priv)); init_nec7210_private(&priv->nec7210_priv); return 0; } --=20 2.43.0