From mboxrd@z Thu Jan 1 00:00:00 1970 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 5862229B78E; Mon, 5 May 2025 22:19:33 +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=1746483573; cv=none; b=BJPUOOrPVI/jnO0w58VJXOeWjsNsvhPUSGWxNYkAmtr3X6qEFKMhNPE+DeBHDP1wtRPua/Z1JMLW10YzhrV/SYXD/6MUeoJ6/jiEI060nXNkOTRei2Z0/2F1mEJJEkRyTMH0KMwqxWbl2alc3tPbY90EAnbfqRxZcwPSRrIsbp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746483573; c=relaxed/simple; bh=vYBIDgjPuAT1pjrXhbJXLQ/c65u0Xv16gt1tFOp2Wa8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Bl6H0K3QxU4eWlOJn1hm6/PGdISwxdQYoQMVbjzdeBqYA3S54YdoKzjCDaTF2A/0KWxjLydc/2+Nbt3yWqIyWOE4lSO5e7Df+iQpOryqXd5ls13t37I7IrP+5z9i9M8VJoAfqZRsQavGPLiYVQPefI4uaUCp8PBT+JRJs4qkXik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sGgZN9EA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sGgZN9EA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50CD1C4CEED; Mon, 5 May 2025 22:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746483573; bh=vYBIDgjPuAT1pjrXhbJXLQ/c65u0Xv16gt1tFOp2Wa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sGgZN9EAG0KP74pDNmwBi5sCRTgFtrfqtU5FAJXdRQql3Qi+gXtvP9Xg8BmSKp24N 2rvkILEDwerSvOAVfvXok7rM2ET7zzHeBM9K60mlMTUgkt5lsVq6u5i/hw/1p3fwjP vCqwPr5eKt72HPsu8c0+7WWmiqDCL62zqolrD1GVYCj7IY6EuBiu6aPRh3r2g66zQq FApWV4j5WtNnlWof8oRtRj/uGUTcJa+mu8pdc94yPXtAu1YO3MElkD8QiyWGMu96aC KS3BY8VpbHDANPdOXVlnSUVdx6qDT3CjY6MlhYowseH34PNReWqmCxGYj9se4s9vVA fwz3NmTiAPFPg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Al Viro , Sasha Levin , hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 6.14 121/642] hypfs_create_cpu_files(): add missing check for hypfs_mkdir() failure Date: Mon, 5 May 2025 18:05:37 -0400 Message-Id: <20250505221419.2672473-121-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250505221419.2672473-1-sashal@kernel.org> References: <20250505221419.2672473-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.14.5 Content-Transfer-Encoding: 8bit From: Al Viro [ Upstream commit 00cdfdcfa0806202aea56b02cedbf87ef1e75df8 ] Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- arch/s390/hypfs/hypfs_diag_fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/hypfs/hypfs_diag_fs.c b/arch/s390/hypfs/hypfs_diag_fs.c index 00a6d370a2803..280266a74f378 100644 --- a/arch/s390/hypfs/hypfs_diag_fs.c +++ b/arch/s390/hypfs/hypfs_diag_fs.c @@ -208,6 +208,8 @@ static int hypfs_create_cpu_files(struct dentry *cpus_dir, void *cpu_info) snprintf(buffer, TMP_SIZE, "%d", cpu_info__cpu_addr(diag204_get_info_type(), cpu_info)); cpu_dir = hypfs_mkdir(cpus_dir, buffer); + if (IS_ERR(cpu_dir)) + return PTR_ERR(cpu_dir); rc = hypfs_create_u64(cpu_dir, "mgmtime", cpu_info__acc_time(diag204_get_info_type(), cpu_info) - cpu_info__lp_time(diag204_get_info_type(), cpu_info)); -- 2.39.5