mmc: core: Fixed bug in one erase-group budget TRIM
authorRobin van der Gracht <robin@protonic.nl>
Tue, 4 Aug 2015 06:58:33 +0000 (08:58 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:50:47 +0000 (14:50 +0200)
commit22d7e85ff8e5826845e9a4fa34b4723e5a97ee9b
tree3fa82091ca4c1e538bfdeedaa8abc58d42a335a6
parent0df9d2eae5e1092b07eaab6b989c2ff14115cab5
mmc: core: Fixed bug in one erase-group budget TRIM

When requesting a trim for several bytes, everything up to the next
erase-group is erased. This causes data corruption.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c