f2fs: return error when accessing insane flie offset
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 21 Aug 2017 20:51:32 +0000 (13:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Aug 2017 17:02:58 +0000 (10:02 -0700)
commitadb6dc197187e2a5f5a7bed01e722f46a58676af
tree942179811d50c40299106aa5d294270099bcde55
parent0adf6a1b796777f5d19a9b7442172016aeb8020a
f2fs: return error when accessing insane flie offset

If file offset is insane, we have to return error instead of kernel panic.

Reported-by: Eric Zhang <followme999@163.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c