commit | c42c61e98251d5de390434181092ce9e7a9c5719 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@kernel.org> | Fri Mar 20 16:45:45 2020 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 01 13:14:47 2020 +0200 |
tree | 137ede52e07be45d970740d15ddf6cecaa9fedba | |
parent | 23c233c606c33251afcafc56ca35b307ed4f2e59 [diff] |
ceph: fix potential race in ceph_check_caps [ Upstream commit dc3da0461cc4b76f2d0c5b12247fcb3b520edbbf ] Nothing ensures that session will still be valid by the time we dereference the pointer. Take and put a reference. In principle, we should always be able to get a reference here, but throw a warning if that's ever not the case. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>