From nobody Tue Feb 10 05:09:44 2026 Received: from mail-244121.protonmail.ch (mail-244121.protonmail.ch [109.224.244.121]) (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 49D703A1E93 for ; Fri, 16 Jan 2026 17:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.121 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585764; cv=none; b=RLRyVTny8uHF4+7gOVEsNOBCyUwUBeKGJxDqS4fyfT79mbkZolyCTu+wPNLuY4KPRkZlQl8eh7+tvEf6+JPpkUS/nsJR+ylAQeTLVzNsBZU+KRpUA5jDTpERNr+HLA+JuFp1YNxfwBpWb4RQSVkG6rL22ewkr8WD0wP4z2FnKHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585764; c=relaxed/simple; bh=ao2csM1nNOZa8ghKP95c77bVorK2p4IjkSNX0dReBAI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ABjpAhrrlgG3tTnULrZCFKJNGeo6w+IrIGCmfxBSRVLRtJUp8dO6QhZu536knNe3LmZfWDmFakakZwU7p4kI1iTdC8kxbAIDZarAGZ8Bx0v3a5QtQPaniQkm8D6kb/bADPfINE5J9rCm9rw7pDaEyh8ffVGcjnyZE8Xa+YzEQY0= 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=kUoSxxlZ; arc=none smtp.client-ip=109.224.244.121 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="kUoSxxlZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1768585761; x=1768844961; bh=ao2csM1nNOZa8ghKP95c77bVorK2p4IjkSNX0dReBAI=; 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=kUoSxxlZKX4rnnlSeBdqJoLmZiti1Vska9lsjIF0g0CbHrQHE6/K7M5ogxMAlry4e WPczVtqSbyqxNkh0FhAXuRysoT/lDQtWcZidGQYk1AX5HLPj11vBrifF2irj2cQT/f aEaOQ+vskop47jR2xBEy0E4OjE38X8p2RISd2e8xTMTNlaOWhfpadXreCeCBXFrVdv GtrNNW+rsP4L8lZq5NEdg+lTZDRZBCwqkuDcykWZAwYnQxYQuJ1ofbvc/bYecL0qKC 5VAIH1/08iVSSZ67irgJFvfb4d/EBY63a5m9VkVNQmHsR2GAQFpantaidBgYoTcP+o FIdzgULxqAxTw== Date: Fri, 16 Jan 2026 17:49:16 +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 25/27] gpib: tnt4882: Replace kmalloc/memset to kzalloc in *allocate_private Message-ID: <20260116174647.317256-26-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: 8ea14900dd4e2c7f027f6bc230f4c01acf060c7a 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 tnt4882_allocate_private. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- v3: - Split commit into smaller pieces - Improve changelog drivers/gpib/tnt4882/tnt4882_gpib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpib/tnt4882/tnt4882_gpib.c b/drivers/gpib/tnt4882/tnt= 4882_gpib.c index c03a976b7380..5f8d7547dadb 100644 --- a/drivers/gpib/tnt4882/tnt4882_gpib.c +++ b/drivers/gpib/tnt4882/tnt4882_gpib.c @@ -843,11 +843,10 @@ static int tnt4882_allocate_private(struct gpib_board= *board) { struct tnt4882_priv *tnt_priv; =20 - board->private_data =3D kmalloc(sizeof(struct tnt4882_priv), GFP_KERNEL); + board->private_data =3D kzalloc(sizeof(struct tnt4882_priv), GFP_KERNEL); if (!board->private_data) return -1; tnt_priv =3D board->private_data; - memset(tnt_priv, 0, sizeof(struct tnt4882_priv)); init_nec7210_private(&tnt_priv->nec7210_priv); return 0; } --=20 2.43.0