mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
ceph: properly put ceph_string reference after async create attempt
commit932a9b5870
upstream. The reference acquired by try_prep_async_create is currently leaked. Ensure we put it. Cc: stable@vger.kernel.org Fixes:9a8d03ca2e
("ceph: attempt to do async create when possible") Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c75ee64e85
commit
a251e7ddde
1 changed files with 2 additions and 0 deletions
|
@ -744,8 +744,10 @@ retry:
|
|||
restore_deleg_ino(dir, req->r_deleg_ino);
|
||||
ceph_mdsc_put_request(req);
|
||||
try_async = false;
|
||||
ceph_put_string(rcu_dereference_raw(lo.pool_ns));
|
||||
goto retry;
|
||||
}
|
||||
ceph_put_string(rcu_dereference_raw(lo.pool_ns));
|
||||
goto out_req;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue