Commit c858a070 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov

ceph: fix NULL pointer dereference in ceph_flush_snaps()

Signed-off-by: default avatar"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent d37b1d99
......@@ -1469,7 +1469,7 @@ void ceph_flush_snaps(struct ceph_inode_info *ci,
if (psession) {
*psession = session;
} else {
} else if (session) {
mutex_unlock(&session->s_mutex);
ceph_put_mds_session(session);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment