summaryrefslogtreecommitdiff
path: root/fs/overlayfs/copy_up.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-17 15:39:29 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2019-06-18 16:06:16 +0300
commit1dac6f5b0ed2601be21bb4e27a44b0c3e667b7f4 (patch)
tree01be29628073cabaf679bdfb672c9903833c677d /fs/overlayfs/copy_up.c
parent9179c21dc6ed1c993caa5fe4da876a6765c26af7 (diff)
downloadlinux-1dac6f5b0ed2601be21bb4e27a44b0c3e667b7f4.tar.xz
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: 146d62e5a586 ("ovl: detect overlapping layers") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/copy_up.c')
0 files changed, 0 insertions, 0 deletions