ceph: properly put ceph_string reference after async create attempt
authorJeff Layton <jlayton@kernel.org>
Tue, 25 Jan 2022 20:39:16 +0000 (15:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:25:39 +0000 (17:25 +0100)
commite7be12ca7d3947765b0d7c1c7e0537e748da993a
tree43ab83a23407b1d2c3347a1a827a355796fbc8ab
parent39986696fef531fde14c87038dcef9537e6aee87
ceph: properly put ceph_string reference after async create attempt

commit 932a9b5870d38b87ba0a9923c804b1af7d3605b9 upstream.

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 <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>
fs/ceph/file.c