From: Jan Kara Date: Tue, 21 Oct 2014 12:07:33 +0000 (+0200) Subject: f2fs: avoid returning uninitialized value to userspace from f2fs_trim_fs() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~143^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bd27ae4aafc9bfee6c8791f7d801ea16cc5622b;p=pandora-kernel.git f2fs: avoid returning uninitialized value to userspace from f2fs_trim_fs() If user specifies too low end sector for trimming, f2fs_trim_fs() will use uninitialized value as a number of trimmed blocks and returns it to userspace. Initialize number of trimmed blocks early to avoid the problem. Coverity-id: 1248809 CC: stable@vger.kernel.org Signed-off-by: Jan Kara Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed