Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}