From: Geert Uytterhoeven Date: Sun, 13 Apr 2014 18:46:22 +0000 (+0200) Subject: mm: Initialize error in shmem_file_aio_read() X-Git-Tag: v3.15-rc1~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7c1d074200417d8204dd97b4acfdba1ebc63c89;p=pandora-kernel.git mm: Initialize error in shmem_file_aio_read() Some versions of gcc even warn about it: mm/shmem.c: In function ‘shmem_file_aio_read’: mm/shmem.c:1414: warning: ‘error’ may be used uninitialized in this function If the loop is aborted during the first iteration by one of the two first break statements, error will be uninitialized. Introduced by commit 6e58e79db8a1 ("introduce copy_page_to_iter, kill loop over iovec in generic_file_aio_read()"). Signed-off-by: Geert Uytterhoeven Acked-by: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed