Namjae Jeon 06025f4df8 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>
2012-12-28 11:26:13 +09:00
..
2012-12-11 13:43:43 +09:00
2012-12-11 13:43:42 +09:00
2012-12-11 13:43:42 +09:00
2012-12-11 13:43:42 +09:00
2012-12-11 13:43:45 +09:00
2012-12-11 13:43:44 +09:00
2012-12-11 13:43:42 +09:00
2012-12-11 13:43:43 +09:00
2012-12-11 13:43:42 +09:00
2012-12-11 13:43:42 +09:00
2012-12-11 13:43:43 +09:00
2012-12-11 13:43:42 +09:00