diff options
| author | 2026-05-01 15:10:58 +0800 | |
|---|---|---|
| committer | 2026-05-11 14:19:01 +0200 | |
| commit | a7cf1da7ac016490d6a1106f2aa6b602d34e9a12 (patch) | |
| tree | 7f2daf4be93c8ec5d3b4d62e8c3507be855f8397 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | fs/statmount: fix slab out-of-bounds write in statmount_mnt_idmap (diff) | |
fs: Fix return in jfs_mkdir and orangefs_mkdir
Return NULL instead of passing to ERR_PTR while err is zero
Fixes these smatch warnings:
- fs/jfs/namei.c:311 jfs_mkdir() warn: passing zero to 'ERR_PTR'
- fs/orangefs/namei.c:369 orangefs_mkdir() warn: passing zero
to 'ERR_PTR'
Fixes: 88d5baf69082 ("Change inode_operations.mkdir to return struct dentry *")
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Link: https://patch.msgid.link/20260501071058.1243245-1-zenghongling@kylinos.cn
Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
