提交 c858a070 编写于 作者: Y Yan, Zheng 提交者: Ilya Dryomov

ceph: fix NULL pointer dereference in ceph_flush_snaps()

Signed-off-by: N"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 d37b1d99
...@@ -1469,7 +1469,7 @@ void ceph_flush_snaps(struct ceph_inode_info *ci, ...@@ -1469,7 +1469,7 @@ void ceph_flush_snaps(struct ceph_inode_info *ci,
if (psession) { if (psession) {
*psession = session; *psession = session;
} else { } else if (session) {
mutex_unlock(&session->s_mutex); mutex_unlock(&session->s_mutex);
ceph_put_mds_session(session); ceph_put_mds_session(session);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册