From nobody Tue Feb 10 06:25:15 2026 Received: from mail-244123.protonmail.ch (mail-244123.protonmail.ch [109.224.244.123]) (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 61EF0225760 for ; Fri, 16 Jan 2026 17:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585716; cv=none; b=rs38nd0W04DVcpqNcHclg4ZL5F2dPmI+E01eJPWI0etrB+N3exoJlg/dlGtewGl1ghy64APycpz8ZaVOY3kSfsKF43wKPAfo0BRiy2r8VWPNN1UJcvPv/UwvuSZKwbVeNDanwk3G1nNFM0lFAGdsDE7YqeS8ot+p+ETTdtfcDZk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768585716; c=relaxed/simple; bh=A0R88Fg0L5L+f6/PY0wYtFkjAVgeqB3rUX9b5lQzEPA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QrLmQEfcsEhAORVLaZLrBFdgLY4qnoddbMsUxCz19BheE86Hc5wgzJ5reQh5XQATIn8nSIUsWUmXJIQnryUyncBD91RSpINqyJJSAMIbHMOtG8jKputydnJ9qGQAyd3q8SaYiOOEH4YjZc9MgKtHC2V+ydzjgv+3HjAqC0ebfR0= 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=TC8kB1s8; arc=none smtp.client-ip=109.224.244.123 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="TC8kB1s8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1768585703; x=1768844903; bh=A0R88Fg0L5L+f6/PY0wYtFkjAVgeqB3rUX9b5lQzEPA=; 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=TC8kB1s8GxRHPOkmCL+/XiQR/Ll3uy+PlR+J112nMs1MHocot1uwFsMpbw0Z2/G5G F1dyvkIpT4l/vtA9oxcTecU6OFWZyLzFsFSl4dxycU/wUvaIz5B9Bd67+XPflRsdXT PzjiteP1zqnQn+cZTILxvbT7TsgUNBfHsVHm5ef9O7g88XqYpBhM4bksGq0p1m4R1W AB1Z7s5ZI9s6Gt+RTcvmaD3xJuvXgd5Z1R6BlMO2NFW+l9+UKWcN4VPyCSfc/suVVG piMy/Kzue78Yht6hnLqS2O0QSbyKqhoSJH5FqEWDc1DjK7BPC3oUuIeDu7eAaez2E6 o4PBFr6HMicyg== Date: Fri, 16 Jan 2026 17:48: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 12/27] gpib: gpio: Unify *allocate_private return value Message-ID: <20260116174647.317256-13-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: 70a9d9b54d2e24614c6f5e22898be4e1f1f4a96a 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 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/gpio/gpib_bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpib/gpio/gpib_bitbang.c b/drivers/gpib/gpio/gpib_bitb= ang.c index 374cd61355e9..62adcab1ddfb 100644 --- a/drivers/gpib/gpio/gpib_bitbang.c +++ b/drivers/gpib/gpio/gpib_bitbang.c @@ -1068,7 +1068,7 @@ static int allocate_private(struct gpib_board *board) { board->private_data =3D kzalloc(sizeof(struct bb_priv), GFP_KERNEL); if (!board->private_data) - return -1; + return -ENOMEM; return 0; } =20 --=20 2.43.0