Commit 991c0287 authored by Pavel Emelyanov's avatar Pavel Emelyanov

mount: Use pre-calculated ct->mountpoint + t_mpnt_l value

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
parent ffe5f9b4
......@@ -483,7 +483,7 @@ static int validate_shared(struct mount_info *m)
list_for_each_entry_safe(cm, tmp, &m->children, siblings) {
/* B */
if (strcmp(ct->mountpoint + t_mpnt_l + len, cm->mountpoint + m_mpnt_l))
if (strcmp(ct_mpnt_rpath + len, cm->mountpoint + m_mpnt_l))
continue;
if (!mounts_equal(cm, ct, false)) {
......
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