From nobody Tue Feb 10 00:22:40 2026 Received: from mail-43103.protonmail.ch (mail-43103.protonmail.ch [185.70.43.103]) (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 532BA3A1E78 for ; Fri, 16 Jan 2026 17:49:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.103 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585766; cv=none; b=DsNmdS37PnifH1gPfgrijQx5hm6jfh7hjH3WwNjllICM20reUiKuubWtSCBknyxWCLqsCcze4B+UqKpB5xVIGVDM7FS7+OBUra8OcpoK5rBdSDfX1ZU87pGjba9Rw2pknpQO6UMJciDGGyl78Y63Ega+y+8MW0F/B2gEfuLz4AI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585766; c=relaxed/simple; bh=uRQqh1gU9u1EUBEiChl+GriTz+18PzkfjFJ5QPxt9cQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AWBwXXescNDQkJWha6lEBskQO9v+xr+zSG0GWuSy5kEhfR+SQvdFGlDBEK/yH5EJTMBq5Ive5hpxuk0q1maWyn/ViwVwaTqaSeoDHM6b/JgsC/fvHb2IXSyZSCGU44BzIJB1rht0gGnPn6ySi1MhhxZGDSFicj+Qxjcnj8rg0h0= 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=xJvFgXkR; arc=none smtp.client-ip=185.70.43.103 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="xJvFgXkR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1768585762; x=1768844962; bh=uRQqh1gU9u1EUBEiChl+GriTz+18PzkfjFJ5QPxt9cQ=; 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=xJvFgXkR0To2JlazvI1HsY8QXyn+hSQC62Pu4BKplBBAjzc1sXt2C2jX7V1sm12yJ nNCKP4J8Jkv+Al3wMLC8L24i8S2nojrCCSm4aWLk1ISuGyBuqJ3r7eEcoSrt+8fLyf 8FzKA6N/TDAj19DLWOQ/aG95RaPNfEHHG2smD525GKVsPb3gqlHjUuQJpcO4JAEFf2 KPPOcs8y7AmudtzL1KyCbf1/LZ2DgadABfK20y4Wsv+MbVPWTefy+xyqTlZ0V6CCLB OAeQB79qpXHINQ0dAmP3XYb5jH8FY7aXw5kPCQ1Onawq31JDpmZHx+wlsG1nXHJLmY LdxmffmI/F4eQ== Date: Fri, 16 Jan 2026 17:49:19 +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 26/27] gpib: tnt4882: Unify *allocate_private return value Message-ID: <20260116174647.317256-27-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: 97da07c25e6476f1803e2ff99400ae567b4adbe0 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" Return -ENOMEM instead of -1 in tnt4882_allocate_private in case of memory allocation failure. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- v3: - Split commit into smaller pieces - Improve changelog drivers/gpib/tnt4882/tnt4882_gpib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpib/tnt4882/tnt4882_gpib.c b/drivers/gpib/tnt4882/tnt= 4882_gpib.c index 5f8d7547dadb..7b9cfb6c07ad 100644 --- a/drivers/gpib/tnt4882/tnt4882_gpib.c +++ b/drivers/gpib/tnt4882/tnt4882_gpib.c @@ -845,7 +845,7 @@ static int tnt4882_allocate_private(struct gpib_board *= board) =20 board->private_data =3D kzalloc(sizeof(struct tnt4882_priv), GFP_KERNEL); if (!board->private_data) - return -1; + return -ENOMEM; tnt_priv =3D board->private_data; init_nec7210_private(&tnt_priv->nec7210_priv); return 0; --=20 2.43.0