projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb43af
)
hypfs_create_cpu_files(): add missing check for hypfs_mkdir() failure
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 18 Mar 2025 02:06:04 +0000
(22:06 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 18 Mar 2025 02:06:04 +0000
(22:06 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/hypfs/hypfs_diag_fs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/hypfs/hypfs_diag_fs.c
b/arch/s390/hypfs/hypfs_diag_fs.c
index 00a6d370a2803253b64d2db28da85e0faa154441..280266a74f378d2740c9a961301ac8ebbafef3c0 100644
(file)
--- 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));