f2fs: sanity check checkpoint segno and blkoff
authorJin Qian <jinqian@google.com>
Mon, 15 May 2017 17:45:08 +0000 (10:45 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 May 2017 20:29:39 +0000 (13:29 -0700)
commit15d3042a937c13f5d9244241c7a9c8416ff6e82a
tree6846c1ef913a8c518a0728032f5ad75749e28b21
parent2d3e4866dea96b0506395b47bfefb234f2088dac
f2fs: sanity check checkpoint segno and blkoff

Make sure segno and blkoff read from raw image are valid.

Cc: stable@vger.kernel.org
Signed-off-by: Jin Qian <jinqian@google.com>
[Jaegeuk Kim: adjust minor coding style]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c