OSDN Git Service

ext4_utils: fix off-by-one error when free blocks
authorJin Qian <jinqian@google.com>
Fri, 8 Sep 2017 00:09:45 +0000 (17:09 -0700)
committerTao Bao <tbao@google.com>
Mon, 11 Sep 2017 19:15:14 +0000 (12:15 -0700)
commit98e42725761e4df326851f08a491f553619debdf
tree9f77c29fdb7599f413181f1a9fea9081b48ff5ee
parent0a26d1b8937ba3c4fda6f66e57cd418e314affba
ext4_utils: fix off-by-one error when free blocks

block points at one block before the region we wanted to free after
the loop that updats bitmap. This causes the code to free chunk still
being used.

Bug: 35262536
Test: lunch angler-userdebug; m dist
Test: lunch bullhead-userdebug; m dist
Change-Id: I7ebb30f4c7bcd01d3213ae0804a026a5ad98072c
(cherry picked from commit a4ed4e10e98b0efa4e259c99e84609bebb08cd66)
ext4_utils/allocate.c