Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: gadget: fastboot: fix barebox update without using buffer
Commit e509849 "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 <[email protected]> Signed-off-by: Sascha Hauer <[email protected]>
- Loading branch information