staging: erofs: fix compression mapping beyond EOF
commitd6421a46af70ce8d74f27ee1a099a23b4c90e691
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 21 Aug 2018 14:49:36 +0000 (21 22:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:46:13 +0000 (27 19:46 +0200)
tree70413fb758c89327849823609eb29803edee458e
parent390c642e1264f3deb5c4b4394b41479221a57542
staging: erofs: fix compression mapping beyond EOF

Logical address of EOF LTP mapping should start at
`inode->i_size' rather than `inode->i_size - 1' to
`m_la(in)', fix it.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/unzip_vle.c