diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-03-17 22:06:04 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-05-29 11:02:15 +0200 |
| commit | 853a4e7439ef1e2fea72e7eaa31ef9d11bf7e138 (patch) | |
| tree | d55a65a16e74a6fc0e4ccbdb490a8ff6a55d6e42 /arch/s390 | |
| parent | 94c3cbc69abbb14c22392fc9914917f01ef43b99 (diff) | |
| download | linux-853a4e7439ef1e2fea72e7eaa31ef9d11bf7e138.tar.gz linux-853a4e7439ef1e2fea72e7eaa31ef9d11bf7e138.tar.bz2 linux-853a4e7439ef1e2fea72e7eaa31ef9d11bf7e138.zip | |
hypfs_create_cpu_files(): add missing check for hypfs_mkdir() failure
[ Upstream commit 00cdfdcfa0806202aea56b02cedbf87ef1e75df8 ]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/s390')
| -rw-r--r-- | arch/s390/hypfs/hypfs_diag_fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/hypfs/hypfs_diag_fs.c b/arch/s390/hypfs/hypfs_diag_fs.c index 00a6d370a280..280266a74f37 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)); |
