diff options
author | Xiubo Li <xiubli@redhat.com> | 2022-03-02 09:51:53 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2022-03-21 15:35:16 +0300 |
commit | 322794d3355c33adcc4feace0045d85a8e4ed813 (patch) | |
tree | cb41f2fbe7fda181249f6010ea9329dea2175bc2 /fs/ceph/caps.c | |
parent | ad5255c1ea9c64b350efe732c90e63063b2bbbe0 (diff) | |
download | linux-322794d3355c33adcc4feace0045d85a8e4ed813.tar.xz |
ceph: fix inode reference leakage in ceph_get_snapdir()
The ceph_get_inode() will search for or insert a new inode into the
hash for the given vino, and return a reference to it. If new is
non-NULL, its reference is consumed.
We should release the reference when in error handing cases.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/caps.c')
0 files changed, 0 insertions, 0 deletions