From: Jan Kara Date: Wed, 22 Oct 2014 13:21:47 +0000 (+0200) Subject: f2fs: fix possible data corruption in f2fs_write_begin() X-Git-Tag: omap-for-v3.19/fixes-rc1~146^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9234f3190bf8b25b11b105191d408ac50a107948;p=pandora-kernel.git f2fs: fix possible data corruption in f2fs_write_begin() f2fs_write_begin() doesn't initialize the 'dn' variable if the inode has inline data. However it uses its contents to decide whether it should just zero out the page or load data to it. Thus if we are unlucky we can zero out page contents instead of loading inline data into a page. CC: stable@vger.kernel.org CC: Changman Lee Signed-off-by: Jan Kara Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed