From: Namjae Jeon Date: Sat, 22 Dec 2012 03:09:43 +0000 (+0900) Subject: f2fs: handle error from f2fs_iget_nowait X-Git-Tag: v3.8-rc3~26^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06025f4df88e9e41f4ebcf6b4c3df30661332bc9;p=pandora-kernel.git f2fs: handle error from f2fs_iget_nowait In case f2fs_iget_nowait returns error, it results in truncate_hole being called with 'error' value as inode pointer. There is no check in truncate_hole for valid inode, so it could result in crash due "invalid access to memory". Avoid this by handling error condition properly. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed