From nobody Tue Feb 10 06:25:16 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 AC4A3340DB0 for ; Fri, 16 Jan 2026 17:48:52 +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=1768585734; cv=none; b=TtScCY2xwrc7rgaxplMq6Hl8UPz+s5H7gSyJGD3mqsgUVKoPnrx6HkjjttyaiIQXT727t+j9lGSpqWjoFDMFfMR/Yn5xpLWLchzOBcm3pHRhLIIJdpQ5cCibgJGcTB9uBxK7heOvPel+YdIXruGTD5tL9P7689KtnjzVk30dylE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585734; c=relaxed/simple; bh=JYhMjn4YIg/qPrDwxvCUvEeWoSMdjb9NcISvEjLevrU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aMQDchjV8l8j1Uz1jHtpqiY07hKDyLwMy1dqW8Tdx1wV4FKlERyPK95djQ2jghgCGimwuXhT43Xz1162w4aYaYxQ9ZFma4PpG4mnbIyfMLOvTaKkZgosMxULl5Jy5jE+I0YkodrmQ17yTJQXAJD43Gyq2IuQIAKPvivLKbSigQE= 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=iUCPlKA1; 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="iUCPlKA1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1768585731; x=1768844931; bh=JYhMjn4YIg/qPrDwxvCUvEeWoSMdjb9NcISvEjLevrU=; 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=iUCPlKA1fR3t40P2rHU/J5xemW/JeQ0U93f+Giu5kjU61PEH8FxvcKfVi799iw3ia 4EK96sbV4VE8iEy99vPYRfC7QMb1eVH6RE7lfem0esKalmugZgQs4iwPyB7Bl90vdr 7SveRfUgJYWRAecCffv1O83vJ4FVwbto5Nh/NLVheoQn5x75Rs3EZFOE3pdA3sDUvA TBhhO9rcrAR7LNfTOfTeN96L4Ne1Hy5YEExvh9k6S5wf1tpOBJppIH9OLbzZbaEP+y sAtVegPARoN4OJeaeX5NP8/DS/h6dQrf9pzmK0HbtUIPZ1IIPCZt6gByKRQ4bvGUoe LwKJ30pCgRGSA== Date: Fri, 16 Jan 2026 17:48:45 +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 18/27] gpib: ines: Unify *allocate_private return value Message-ID: <20260116174647.317256-19-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: 71746cd3c6814a13c13c7a4d01a99c1aa9db4ba1 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 ines_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/ines/ines_gpib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpib/ines/ines_gpib.c b/drivers/gpib/ines/ines_gpib.c index bab11b50adaa..a795b12ef8e0 100644 --- a/drivers/gpib/ines/ines_gpib.c +++ b/drivers/gpib/ines/ines_gpib.c @@ -659,7 +659,7 @@ static int ines_allocate_private(struct gpib_board *boa= rd) =20 board->private_data =3D kzalloc(sizeof(struct ines_priv), GFP_KERNEL); if (!board->private_data) - return -1; + return -ENOMEM; priv =3D board->private_data; init_nec7210_private(&priv->nec7210_priv); return 0; --=20 2.43.0