kernel_optimize_test/fs/overlayfs
Arnd Bergmann 1dac6f5b0e ovl: fix bogus -Wmaybe-unitialized warning
gcc gets a bit confused by the logic in ovl_setup_trap() and
can't figure out whether the local 'trap' variable in the caller
was initialized or not:

fs/overlayfs/super.c: In function 'ovl_fill_super':
fs/overlayfs/super.c:1333:4: error: 'trap' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    iput(trap);
    ^~~~~~~~~~
fs/overlayfs/super.c:1312:17: note: 'trap' was declared here

Reword slightly to make it easier for the compiler to understand.

Fixes: 146d62e5a5 ("ovl: detect overlapping layers")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2019-06-18 15:06:16 +02:00
..
copy_up.c ovl: fix missing upper fs freeze protection on copy up for ioctl 2019-05-06 13:54:50 +02:00
dir.c ovl: relax WARN_ON() for overlapping layers use case 2019-05-08 13:25:53 +02:00
export.c ovl_lookup_real_one(): don't bother with strlen() 2019-04-26 13:13:33 -04:00
file.c ovl: fix wrong flags check in FS_IOC_FS[SG]ETXATTR ioctls 2019-06-11 17:17:41 +02:00
inode.c ovl: detect overlapping layers 2019-05-29 13:03:37 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: detect overlapping layers 2019-05-29 13:03:37 +02:00
overlayfs.h ovl: detect overlapping layers 2019-05-29 13:03:37 +02:00
ovl_entry.h ovl: detect overlapping layers 2019-05-29 13:03:37 +02:00
readdir.c ovl: fix wrong use of impure dir cache in ovl_iterate() 2018-07-17 16:04:34 +02:00
super.c ovl: fix bogus -Wmaybe-unitialized warning 2019-06-18 15:06:16 +02:00
util.c ovl: detect overlapping layers 2019-05-29 13:03:37 +02:00