Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph: fix memory leak on decode error in ceph_handle_caps
[ Upstream commit 2ad32cf ] If we hit a decoding error late in the frame, then we might exit the function without putting the pool_ns string. Ensure that we always put that reference on the way out of the function. 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: Sasha Levin <sashal@kernel.org>
- Loading branch information