From: Dominik Karol PiÄ…tkowski Date: Fri, 16 Jan 2026 17:48:45 +0000 (+0000) Subject: gpib: ines: Unify *allocate_private return value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d4d06acb6f1433bfe814b40312e3d2d385a3b0;p=thirdparty%2Flinux.git gpib: ines: Unify *allocate_private return value Return -ENOMEM instead of -1 in ines_allocate_private in case of memory allocation failure. Signed-off-by: Dominik Karol PiÄ…tkowski Link: https://patch.msgid.link/20260116174647.317256-19-dominik.karol.piatkowski@protonmail.com Signed-off-by: Greg Kroah-Hartman --- 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 *board) board->private_data = kzalloc(sizeof(struct ines_priv), GFP_KERNEL); if (!board->private_data) - return -1; + return -ENOMEM; priv = board->private_data; init_nec7210_private(&priv->nec7210_priv); return 0;