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

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

ceph: fix null pointer dereference in send_mds_reconnect()



sb->s_root can be null when umounting

Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent 32ec4397
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2892,6 +2892,7 @@ static void send_mds_reconnect(struct ceph_mds_client *mdsc,
	spin_unlock(&session->s_cap_lock);

	/* trim unused caps to reduce MDS's cache rejoin time */
	if (mdsc->fsc->sb->s_root)
		shrink_dcache_parent(mdsc->fsc->sb->s_root);

	ceph_con_close(&session->s_con);