]> git.baikalelectronics.ru Git - kernel.git/commit
VFS: collect_mounts() should return an ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Aug 2013 09:44:39 +0000 (12:44 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 24 Aug 2013 16:10:29 +0000 (12:10 -0400)
commit396d437785656f0bf8297dab365bb1b644337bfd
tree33027a6684f4746885db8149a79af09c0edd39d3
parentfcd736c2d799e4948aa783c6ca23043e6591844a
VFS: collect_mounts() should return an ERR_PTR

This should actually be returning an ERR_PTR on error instead of NULL.
That was how it was designed and all the callers expect it.

[AV: actually, that's what "VFS: Make clone_mnt()/copy_tree()/collect_mounts()
return errors" missed - originally collect_mounts() was expected to return
NULL on failure]

Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c