summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-07-30 11:46:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-08 15:13:31 +0200
commit6e0bd0767a775291870daea743f82b94f7d909ac (patch)
tree92b059a5f9166a3d27d9d472b991e96496a1b344 /common
parent2e9e7a400540c7f8cdc1466e81bff0efb5af8859 (diff)
downloadbarebox-6e0bd0767a775291870daea743f82b94f7d909ac.tar.gz
barebox-6e0bd0767a775291870daea743f82b94f7d909ac.tar.xz
USB: gadget: fastboot: allow exporting only barebox update handler
Exporting only the bbu handler and nothing else over fastboot via usbgadget -A '' -b used to work. Restore this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220730094615.1762042-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/fastboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/fastboot.c b/common/fastboot.c
index 330a06f5a3..72e6ba3c40 100644
--- a/common/fastboot.c
+++ b/common/fastboot.c
@@ -171,6 +171,8 @@ int fastboot_generic_init(struct fastboot *fb, bool export_bbu)
if (!fb->tempname)
return -ENOMEM;
+ if (!fb->files)
+ fb->files = file_list_new();
if (export_bbu)
bbu_append_handlers_to_file_list(fb->files);