linux/fs/cachefiles
Geert Uytterhoeven 7ccbbcd176 FS-Cache: Add missing initialization of ret in cachefiles_write_page()
commit cf89752645 upstream.

fs/cachefiles/rdwr.c: In function ‘cachefiles_write_page’:
fs/cachefiles/rdwr.c:882: warning: ‘ret’ may be used uninitialized in
this function

If the jump to label "error" is taken, "ret" will indeed be
uninitialized, and random stack data may be printed by the debug code.

Fixes: 102f4d900c ("FS-Cache: Handle a write to the page immediately beyond the EOF marker")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-12-18 16:06:16 +00:00
..
bind.c fs/cachefiles: add missing \n to kerror conversions 2014-10-05 13:41:07 -07:00
daemon.c fs/cachefiles: add missing \n to kerror conversions 2014-10-05 13:41:07 -07:00
interface.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
internal.h fs/cachefiles: add missing \n to kerror conversions 2014-10-05 13:41:07 -07:00
Kconfig CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
key.c CacheFiles: Downgrade the requirements passed to the allocator 2012-12-20 21:58:25 +00:00
main.c fs/cachefiles: add missing \n to kerror conversions 2014-10-05 13:41:07 -07:00
Makefile CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
namei.c fs/cachefiles: add missing \n to kerror conversions 2014-10-05 13:41:07 -07:00
proc.c CacheFiles: A cache that backs onto a mounted filesystem 2009-04-03 16:42:41 +01:00
rdwr.c FS-Cache: Add missing initialization of ret in cachefiles_write_page() 2015-12-18 16:06:16 +00:00
security.c fs/cachefiles: replace kerror by pr_err 2014-06-06 16:08:14 -07:00
xattr.c fs/cachefiles: add missing \n to kerror conversions 2014-10-05 13:41:07 -07:00