git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: moxart: fix handling of sgm->consumed, otherwise WARN_ON triggers
[sfrench/cifs-2.6.git]
/
drivers
/
mmc
/
host
/
moxart-mmc.c
diff --git
a/drivers/mmc/host/moxart-mmc.c
b/drivers/mmc/host/moxart-mmc.c
index b88d6dec209f5722df79c3d269070939aa2d72da..9a5f75163acaeef8226ee122dde79c60fd9b7d8c 100644
(file)
--- a/
drivers/mmc/host/moxart-mmc.c
+++ b/
drivers/mmc/host/moxart-mmc.c
@@
-300,6
+300,7
@@
static void moxart_transfer_pio(struct moxart_host *host)
remain = sgm->length;
if (remain > host->data_len)
remain = host->data_len;
+ sgm->consumed = 0;
if (data->flags & MMC_DATA_WRITE) {
while (remain > 0) {