]> git.ipfire.org Git - thirdparty/linux.git/commit
nilfs2: Fix return in nilfs_mkdir
authorHongling Zeng <zenghongling@kylinos.cn>
Wed, 20 May 2026 10:15:47 +0000 (19:15 +0900)
committerViacheslav Dubeyko <slava@dubeyko.com>
Wed, 20 May 2026 18:20:56 +0000 (11:20 -0700)
commite5925f33e4fa9ee313d481557607adce8e30ed2e
treeea869c3baa77eb05b3bfeef4d44b305dee375671
parent665f192a2a11384cb7dc1be5f87d16438522a4ed
nilfs2: Fix return in nilfs_mkdir

Return NULL instead of passing zero to ERR_PTR.
  Fixes smatch warning:
     - fs/nilfs2/namei.c:261 nilfs_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>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
fs/nilfs2/namei.c