Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp175276lqo; Tue, 7 May 2024 16:43:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpm/Pbh+hEQrcJh/k6ZvmMvsX2Yl8KdQO4yiRe6app5vfE/o/Njy8m1vd6tEEi8wphckMF8FQ99df2BD5MJQczgZwSWBLZZmAdx0AKdA== X-Google-Smtp-Source: AGHT+IFQl1VFJSDFHFEsg3FbyFWmL6vl0wc13/hpQcnu7gI0iHz08NKPrSkVXcrbaFbpOfW9Jdlm X-Received: by 2002:a17:906:32ce:b0:a59:a8a4:a5aa with SMTP id a640c23a62f3a-a59fb95922cmr53815066b.44.1715125407701; Tue, 07 May 2024 16:43:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715125407; cv=pass; d=google.com; s=arc-20160816; b=NnWVDsNtjTZrPnZKWflVsYG/hXZARWyrpZs5UY8EEd0SQLUEO0uf5RM4iKlYHpYxQn /0XUdrMLqUxBPtXYASrSs507y04aCWTbOVRibk1JDmYr40/rYHfxazz+W19qJLhx8QXQ aYT5vobf30zdVzvamNu2Yw+pPS/hu7SGDTsUGayjuoCYVMsWRqalfb7PejbCZ0Bs5Yfa Awop78SBPyDz/fM4PqhCfSUW1WFBN0mFZBU/hAlq7MX/4UW0aNq4vyXkyTI9fZMGwi6O 3+A+GK3bg+chBS86gwNZ4Az1vkghoWv3DDy9iQRWYTU3JkzhJfh8QbKopLiP7EJYlfV1 LpTA== 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=/6iUXpbNehVZ+sEsrdI/HDKEc1ZelrTx4nHFR+wTQBk=; fh=QDKdxdf6dq7wm639gFdELozh9oA/utMr7hnNrYiek0Y=; b=alf9z1gKcWBmrDkfK/RQg4Ypc6bK2QCN9ZXY5E7FTWaPAGrROdmgpGZRtOIhrIxzbI 0t0mEF8tk/ymm7KElE/WfEYUsByibS5e+9vXW4c+ExifcIKHfyIb8LiOjlTIU4mlSXUX 4UcckKyWV5mke57ju5IgsMOVSr1WZdm/gOVpv4I/MuiwwpQQIRZQnmrCmB9Mup6wEylq BOSsbUFZE0C2znbrqwFtihl+pWenV7CaigEK85WVAUT4Bg6e+GfxM8uctbGpwAFlV0dE v7PcNWK1yr3f1IhpFRXScKjpwlYn7K/0r9RsHEb/Q0y8P4Zqn82nTZ9lBeLun0M+1sdN 9T0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B6PdT6oQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172433-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qb41-20020a1709077ea900b00a59c22f1070si3748401ejc.163.2024.05.07.16.43.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B6PdT6oQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172433-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 3B8681F220E7 for ; Tue, 7 May 2024 23:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F106172BAA; Tue, 7 May 2024 23:12:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B6PdT6oQ" 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 9600D1708BD; Tue, 7 May 2024 23:12:04 +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=1715123524; cv=none; b=SRIyFSP0J27r4A201KfbAmISX+w/NBFm2jLTiTSoAas4uiW5FCvKrnyChAjbSeOz7gN+4x6G4zxmlPZA9aPfYwIYRKJm72p6cSI29hLTP8hGZ/uTdHrSLV4ULmCUbpUfQxj+nsZ6s7/N2RA1lJQrbf62x0W+8y/eCJUBF2VTMNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123524; c=relaxed/simple; bh=y1rhdDOxe21+WMY9S2759/oEbYoQ9ExkWEChZFtqQuo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TJ992n0/RYNaRlMkNo6AliJ9lFrQFIc7snfBfqS3b6soCJEGmzxzc4xZ5/4Yic6ZATh+0MycXCwwUk4gg7AfjjQNO7PQ0HDOfzC0kba83iFy/H4/QwpX1bB8GBMnrYqoAPTv/2PLrly93vXY/duYLDEVBVBSzIYO5zffyzJfKUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B6PdT6oQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37377C4AF63; Tue, 7 May 2024 23:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123524; bh=y1rhdDOxe21+WMY9S2759/oEbYoQ9ExkWEChZFtqQuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B6PdT6oQ662fuf4LrznIYHH32plfuvnu13SpQDJqtAV5wlFyVP+qnbnAdBuLngUQW ntjIuuFlFE8VZcZlSVWTjAfaR1/Gn0GawA++Zi82Jw/evD2CijxpW+jMcpeCOs4Pz6 mcGVXim8gIqMgwxlRHvnw2hmTmI4Vpmd+h2IWDe2i+/x1owZfK1FHsfvhx9h75le5D hrof7PoccwV1LS7s3q6grn3i672wDHqK+uCx9Z2UUPHUzyyGULOZU6cSFZ3KHSuglv l5y9uQWKQ2AOEZr9YF0JZKQG0kU6Gf/qrrQoRuYLzR7aD1EfxVDWH3WjfLO4QCZ3xv Ljebuq04lh4oQ== 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.6 38/43] nvmet-auth: return the error code to the nvmet_auth_host_hash() callers Date: Tue, 7 May 2024 19:09:59 -0400 Message-ID: <20240507231033.393285-38-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231033.393285-1-sashal@kernel.org> References: <20240507231033.393285-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.6.30 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 4dcddcf95279b..1f7d492c4dc26 100644 --- a/drivers/nvme/target/auth.c +++ b/drivers/nvme/target/auth.c @@ -368,7 +368,7 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response, kfree_sensitive(host_response); 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