Jeff Layton 75bd1d78e8 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>
2020-10-01 13:12:46 +02:00
..
2020-08-21 09:48:15 +02:00
2020-04-02 16:34:33 +02:00
2019-08-06 19:05:23 +02:00
2020-08-21 09:48:13 +02:00
2020-08-21 09:48:18 +02:00
2020-08-26 10:29:56 +02:00
2019-12-17 20:38:15 +01:00
2018-12-21 14:13:04 +01:00
2020-09-03 11:22:29 +02:00
2020-03-11 18:02:43 +01:00
2020-04-02 16:34:21 +02:00