]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dfu: correct dfu buffer inited value
authorBo Shen <voice.shen@atmel.com>
Wed, 16 Oct 2013 09:26:38 +0000 (17:26 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 8 Nov 2013 19:46:20 +0000 (20:46 +0100)
commit31bae4c5d9e5e7eca70d64152441bc8290016560
tree991494b43f261a2a3ad3989225edba522330e9ac
parentc2617bc77323e75f68cc7aa6ce54bf39771f1e7a
usb: dfu: correct dfu buffer inited value

After dfu buffer is initialized, the buffer should be all available,
while not 0. Initialize its value to min(dfu_buf_size, dfu->r_left).

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/dfu/dfu.c