mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ceph: fix NULL pointer dereference in ceph_flush_snaps()
Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
d37b1d9943
commit
c858a0709f
1 changed files with 1 additions and 1 deletions
|
@ -1469,7 +1469,7 @@ out:
|
|||
|
||||
if (psession) {
|
||||
*psession = session;
|
||||
} else {
|
||||
} else if (session) {
|
||||
mutex_unlock(&session->s_mutex);
|
||||
ceph_put_mds_session(session);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue