summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-18 08:48:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-18 08:48:16 +0100
commitec91b38f12bc2a10c54c434212f919a04fac6ef8 (patch)
tree384a258270c666e72548a945023961d69401bfd6 /drivers
parent822768c99c97661ea87a50bb4931936e0608a54e (diff)
parent73290bcfd105cd72e45c4843e8625033cefcc089 (diff)
downloadbarebox-ec91b38f12bc2a10c54c434212f919a04fac6ef8.tar.gz
Merge branch 'for-next/block'
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 0a3aff3..426ee9d 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -957,6 +957,8 @@ static int fastboot_handle_sparse(struct f_fastboot *f_fb,
if (ret)
goto out;
} else {
+ discard_range(fd, retlen, pos);
+
pos = lseek(fd, pos, SEEK_SET);
if (pos == -1) {
ret = -errno;