We recently changed copy_tree() to return an error pointer in d196d8d327 ('VFS: Make clone_mnt()/copy_tree()/collect_mounts() return errors'). This call needs to be updated as well. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> diff --git a/fs/namespace.c b/fs/namespace.c index 8583bfe..c53d338 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1314,7 +1314,9 @@ struct vfsmount *collect_mounts(struct path *path) tree = copy_tree(real_mount(path->mnt), path->dentry, CL_COPY_ALL | CL_PRIVATE); up_write(&namespace_sem); - return tree ? &tree->mnt : NULL; + if (IS_ERR(tree)) + return NULL; + return &tree->mnt; } void drop_collected_mounts(struct vfsmount *mnt) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html