usb: gadget: fastboot: use read_file_2
read_file_2 gives us a proper error code and allows us
to specify a maximum size which in this case we happen to know.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent bb89b4e commit 09788a0b9d2b9a56cb444db1149072005e8a82c3
@Sascha Hauer Sascha Hauer authored on 2 Feb 2018
Showing 1 changed file
View
drivers/usb/gadget/f_fastboot.c