diff options
author | Tom Rini <trini@konsulko.com> | 2020-09-03 09:48:28 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-03 09:48:28 -0400 |
commit | 9bfb567e5f1bfe7de8eb41f8c6d00f49d2b9a426 (patch) | |
tree | 50aa5bfd07887062e0d6808158a02434c9a85116 /drivers/fastboot/fb_getvar.c | |
parent | 7f4d3c044504668fcbc547af52e0c2c4fd715d27 (diff) | |
parent | 293a6dfeb96129abebf1ad927fa9aedf03a66d34 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-usb
- Mostly DFU fixes and r8152 fixes
Diffstat (limited to 'drivers/fastboot/fb_getvar.c')
-rw-r--r-- | drivers/fastboot/fb_getvar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c index 52da34b1e3..d43f2cfee6 100644 --- a/drivers/fastboot/fb_getvar.c +++ b/drivers/fastboot/fb_getvar.c @@ -95,7 +95,7 @@ static const struct { * * @param[in] part_name Info for which partition name to look for * @param[in,out] response Pointer to fastboot response buffer - * @param[out] size If not NULL, will contain partition size (in blocks) + * @param[out] size If not NULL, will contain partition size * @return Partition number or negative value on error */ static int getvar_get_part_info(const char *part_name, char *response, @@ -109,7 +109,7 @@ static int getvar_get_part_info(const char *part_name, char *response, r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info, response); if (r >= 0 && size) - *size = part_info.size; + *size = part_info.size * part_info.blksz; # elif CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND) struct part_info *part_info; |