]> git.hungrycats.org Git - linux/commit
ceph: Fix ERR_PTR(0) in ceph_mkdir()
authorHongling Zeng <zenghongling@kylinos.cn>
Thu, 4 Jun 2026 07:43:25 +0000 (15:43 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 26 Aug 2026 17:24:19 +0000 (19:24 +0200)
commit4f49c3f8a5a86d237bb202ecb17c2802ddc8fd2f
treeb56ba7b93043c6d8b7c82715cbd5891576899baf
parent8d3ae59288f1e7d58d76558a6ee96d533bc5019f
ceph: Fix ERR_PTR(0) in ceph_mkdir()

When mkdir succeeds, ceph_mkdir() sets ret to ERR_PTR(0) which is
incorrect. It should return NULL instead for success.

Fixes: 88d5baf69082 ("Change inode_operations.mkdir to return struct dentry *")
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/dir.c