fastboot: don't close fd 0 when downloading to ram
When downloading to a buffer, download_fd is never assigned a valid file
descriptor. We should therefore avoid calling close on the value found
in that variable.

Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2879373 commit c5946e53431bb2aad1ec2a8dc1517955153e56ef
@Daniel Glöckner Daniel Glöckner authored on 14 May 2020
Sascha Hauer committed on 20 May 2020
Showing 1 changed file
View
common/fastboot.c