diff options
| author | Jeff Layton <jlayton@kernel.org> | 2020-03-20 16:45:45 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-01 11:11:56 +0200 |
| commit | da1935ae27d6af755d561204cf4b2ba2cf39fbd0 (patch) | |
| tree | 071aebba91c8b55c3dc73f6e03337367e41a81f5 /scripts | |
| parent | bc5d9f7ad8d8efd5d7f0f8d2e818b0d8f9764526 (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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
