usb: gadget: fastboot: fix barebox update without using buffer
Commit e5098495 "usb: gadget: fastboot: Add option to download to a buffer"
breaks the use of temporary files for fastboot barebox_update.

In the patch the ".imagefile = FASTBOOT_TMPFILE" allocation gets
removed, but data.imagefile is still used. This leads to an NULL
pointer dereference. We fix it by using sourcefile instead.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a90a0bb commit 03f2a17b10d060ba545cb8e280c1092b5bfdae29
@Michael Grzeschik Michael Grzeschik authored on 16 May 2018
Sascha Hauer committed on 17 May 2018
Showing 1 changed file
View
drivers/usb/gadget/f_fastboot.c