Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp171787lqo; Tue, 7 May 2024 16:33:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvnu83/AMNA9H9Y0rZ4WdHVzvo6WHStBwmyhwsFNWohHPhZYYZbI4xuuduUIPRsU0cvsOyWt0gfM+RzYmXFZ0D/MaLjdrW8L1JwEjO1g== X-Google-Smtp-Source: AGHT+IHjsqtngVInJMrYFsnxpTaiX9t+ITdhWE7Gc6zwxYLewGm2oEq8MzWnFnVvkHjPDUzg+41c X-Received: by 2002:a19:770f:0:b0:51f:2709:3641 with SMTP id 2adb3069b0e04-5217c3737b2mr522419e87.26.1715124822401; Tue, 07 May 2024 16:33:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715124822; cv=pass; d=google.com; s=arc-20160816; b=i6WjP18gzyfIn2fovl28dxJpXHumwEaD6YkmKyyDiN6wfU3uW2DiY7s+xB6+PJIlyE GVyZV+AQtu5whI4d6IOvr7tafVKfaBgTv8z8YROGEsFWorfzpStgQWanYo5sMURkBxtk kl5swlQSC6K5iD0SLaVjsdneDe7qcXjMDj2z0wzkK3bhIRBixbVDpC/cZ3Vfdf5GoFpT 3E6DyXPCj0eG3zGd4CIQT9yWc+5xF0wJPyNznVsSFZ3jQhQYfLwWDGX1W0DSYbXWh4P/ mkmSU5Q2hkipfX8+m4Tm2Do8UKT9N4TMEeNVHagcifMNL9GIYxZ/G6PhPe0q+T31PFyY MBiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=eWMaiiKkeAEbU5BHEDLXaAjD/fEbfSYnx+mwVM57k8Y=; fh=QDKdxdf6dq7wm639gFdELozh9oA/utMr7hnNrYiek0Y=; b=E9S1a2NwYO/7dJ0apu9Kc4NpvsctwnAbOxoOLLAYopluv7zUOgl3qrMh6EdgsajruE fcQh+1gtZthWEurqOwPqhZkGspEKc+3oUBHhPR1DVVTsIwWVnJDURGDKmuMc2lOXB9/G zk1ClDTgQnuAJjDeJW1B8MmAKQOMxO6IUq0psC6QEhVdW8oYuBqtyoQqMXJeOXFyXyUF NWEHVG1AJViNhohrBij2Rq+9+dfDOY/iePlfsSEIVgFuFjwZbD0FdGgMZj1OY9SdkESy CX00rvlNkozZMNZCy9IM5G9OykViKHW8AOZIzDgsEYnBoZakN+4OTzP21MRZOpxZzOLR F8KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S26LMnI4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lf10-20020a170906ae4a00b00a59ab50d0e8si4561417ejb.796.2024.05.07.16.33.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:33:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S26LMnI4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E55E31F23248 for ; Tue, 7 May 2024 23:33:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75B78146A94; Tue, 7 May 2024 23:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S26LMnI4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9D7EE146A6E; Tue, 7 May 2024 23:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123394; cv=none; b=EjoGakFk1N7eshY7GCAkDF+srOtcd0lJp5dkiiTEIaPDTLXEDtK6GfPzLPUOhaSwm10TJxGtqxLF61mzBLthWcyP2QfXjjcFzeXXo+GaouYnGJ349iBxKQtlqed2Eq1zBZGX/4vh+9Q5et6YCaNDpeDHCqbKln589H0BBDVwfUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123394; c=relaxed/simple; bh=uiAzBqoKilL7XrDCrfA109bLqKJzCbNHim/HtuZpb4s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Su5O1QVhbPNjnQJGldHpbmT6Q2tHicMPcZ+0pZDquT7F8gaCF6zPlOplHGMoJO8T8Khvm2hqqY2WNxxM9c1hAcKgYtHvFAlaz/mYBH0uCxGvJYZI7+42GG3dzSguGXDKBD6XYBi8zICZNMlyENshIwV/y+fv2s3t5sjvYJntuNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S26LMnI4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B633C3277B; Tue, 7 May 2024 23:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123394; bh=uiAzBqoKilL7XrDCrfA109bLqKJzCbNHim/HtuZpb4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S26LMnI4pf/I/FLhHgdjYKRTWjWLSa417nzETJ+s5Q4VPqw3W1BEnfeCKfMwD1NDT hwr2a4P2V34QZXfI8envXosMfPbdnuVcU3TjBftNclakw4n9Pb/+szNUG1gen6DoPw 7ZOKCo7XjCVHo/kfXvTj/4dWXSjlh4q8N+m762jN3ewhkqPxi+IcZy+ciT+8FNIWmT ROZ0vbqG4rhrSyKNsGNDB8m9AItNU1md2ijx8tQr5baJapGZFFoeYlRJJ0y2GtaPFX scOEAHk8nxWdz85zVuMTigznVEUPdVJXY7KxdEWeMMv58RleeHCs/0aL9pLH67I9MT o/iTzfAFCnDyg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Maurizio Lombardi , Sagi Grimberg , Chaitanya Kulkarni , Keith Busch , Sasha Levin , hare@suse.de, linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 6.8 46/52] nvmet-auth: return the error code to the nvmet_auth_host_hash() callers Date: Tue, 7 May 2024 19:07:12 -0400 Message-ID: <20240507230800.392128-46-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507230800.392128-1-sashal@kernel.org> References: <20240507230800.392128-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.9 Content-Transfer-Encoding: 8bit From: Maurizio Lombardi [ Upstream commit 46b8f9f74f6d500871985e22eb19560b21f3bc81 ] If the nvmet_auth_host_hash() function fails, the error code should be returned to its callers. Signed-off-by: Maurizio Lombardi Reviewed-by: Sagi Grimberg Reviewed-by: Chaitanya Kulkarni Signed-off-by: Keith Busch Signed-off-by: Sasha Levin --- drivers/nvme/target/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/target/auth.c b/drivers/nvme/target/auth.c index 3ddbc3880cac8..9e51c064b0728 100644 --- a/drivers/nvme/target/auth.c +++ b/drivers/nvme/target/auth.c @@ -370,7 +370,7 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response, nvme_auth_free_key(transformed_key); out_free_tfm: crypto_free_shash(shash_tfm); - return 0; + return ret; } int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response, -- 2.43.0