projects
/
profile
/
common
/
platform
/
kernel
/
u-boot-artik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
900677f
)
usb: dfu: decrease dfu->r_left along with the transfer
author
Bo Shen
<voice.shen@atmel.com>
Wed, 16 Oct 2013 09:26:37 +0000
(17:26 +0800)
committer
Chanho Park
<chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:29:51 +0000
(16:29 +0900)
The value of dfu->r_left need decrease along with the transfer
Signed-off-by: Bo Shen <voice.shen@atmel.com>
drivers/dfu/dfu.c
patch
|
blob
|
history
diff --git
a/drivers/dfu/dfu.c
b/drivers/dfu/dfu.c
index 6ec2a2633ca0f97e9d36ed46e590d2f5fcbdc2c7..2a514d08bc428cf74f02f583dbda3e2d4b323686 100644
(file)
--- a/
drivers/dfu/dfu.c
+++ b/
drivers/dfu/dfu.c
@@
-241,6
+241,7
@@
static int dfu_read_buffer_fill(struct dfu_entity *dfu, void *buf, int size)
dfu->crc = crc32(dfu->crc, buf, chunk);
dfu->i_buf += chunk;
dfu->b_left -= chunk;
+ dfu->r_left -= chunk;
size -= chunk;
buf += chunk;
readn += chunk;