X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fnamespace.c;h=a45ba4f267fe6e834909f122dd166cdd608dcce5;hb=52e220d357a38cb29fa2e29f34ed94c1d66357f4;hp=7b1ca9ba0b0a70213915f6d7bce688184ab7a56f;hpb=821ff77c6c524c40667e01483fc72428b58810b4;p=karo-tx-linux.git diff --git a/fs/namespace.c b/fs/namespace.c index 7b1ca9ba0b0a..a45ba4f267fe 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1429,7 +1429,7 @@ struct vfsmount *collect_mounts(struct path *path) CL_COPY_ALL | CL_PRIVATE); namespace_unlock(); if (IS_ERR(tree)) - return NULL; + return ERR_CAST(tree); return &tree->mnt; }