linux/fs/overlayfs
Amir Goldstein 8fc646b443 ovl: fix random return value on mount
On failure to prepare_creds(), mount fails with a random
return value, as err was last set to an integer cast of
a valid lower mnt pointer or set to 0 if inodes index feature
is enabled.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 3fe6e52f06 ("ovl: override creds with the ones from ...")
Cc: <stable@vger.kernel.org> # v4.7
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-13 22:06:45 +02:00
..
Kconfig ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
copy_up.c ovl: mark parent impure and restore timestamp on ovl_link_up() 2017-07-04 22:08:15 +02:00
dir.c ovl: persistent overlay inode nlink for indexed inodes 2017-07-04 22:03:19 +02:00
inode.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
namei.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
overlayfs.h ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
ovl_entry.h ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
readdir.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
super.c ovl: fix random return value on mount 2017-07-13 22:06:45 +02:00
util.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00