From: Jeff Layton Date: Tue, 25 Jan 2022 20:39:16 +0000 (-0500) Subject: ceph: properly put ceph_string reference after async create attempt X-Git-Tag: v6.6.17~8302^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=932a9b5870d38b87ba0a9923c804b1af7d3605b9;p=platform%2Fkernel%2Flinux-rpi.git ceph: properly put ceph_string reference after async create attempt The reference acquired by try_prep_async_create is currently leaked. Ensure we put it. Cc: stable@vger.kernel.org Fixes: 9a8d03ca2e2c ("ceph: attempt to do async create when possible") Signed-off-by: Jeff Layton Reviewed-by: Ilya Dryomov Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 5b9104b..6afae97 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -750,8 +750,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; } }