commit | 06025f4df88e9e41f4ebcf6b4c3df30661332bc9 | [log] [tgz] |
---|---|---|
author | Namjae Jeon <namjae.jeon@samsung.com> | Sat Dec 22 12:09:43 2012 +0900 |
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | Fri Dec 28 11:26:13 2012 +0900 |
tree | 9d5fab4bb021444db75538a70095675af227dded | |
parent | 029cd28c1f739bbfc5105035696d5f1f4e45d161 [diff] |
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 <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>