]> git.baikalelectronics.ru Git - uboot.git/commit
fastboot: Fix fastboot reboot fail by changing functions order
authoryurii.pidhornyi <yurii.pidhornyi@globallogic.com>
Thu, 20 Aug 2020 15:41:18 +0000 (18:41 +0300)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commitadf48096c0e09f23a2fac03ae78dd61249b2265e
tree9e91472cc6074433e805acf42af61d4c7475bdab
parentbb49545c436e8ab2797e74bafc199e8d4ec39ad2
fastboot: Fix fastboot reboot fail by changing functions order

It was revealed that when the fastboot_tx_write_str function is called
without the previously initialized fastboot_func->in_req->complete field,
a copy of in_req will be sent to the I/O requests queue without
an initialized field.

Moving a piece of code with the initializing of the
fastboot_func->in_req->complete field above transmit_tx allows to solve
this problem.

Fixes: 20bd37b3a61 "usb: fastboot: Convert USB f_fastboot to shared fastboot"
Signed-off-by: yurii.pidhornyi <yurii.pidhornyi@globallogic.com>
drivers/usb/gadget/f_fastboot.c