genesys: usbhub: Fix firmware max size regression

This fixes commit 1ade02e944.

Fixes:

	firmware too large, got 0x6312, expected <= 0x6000
This commit is contained in:
Gaël PORTAY 2022-04-01 14:09:08 +02:00 committed by Richard Hughes
parent d3ce827f96
commit e22eaf0726

View File

@ -986,7 +986,7 @@ fu_genesys_usbhub_device_setup(FuDevice *device, GError **error)
default:
break;
}
fu_device_set_firmware_size_max(device, self->fw_data_total_count);
fu_device_set_firmware_size_max(device, self->fw_data_total_count + self->extend_size);
/* verify firmware integrity */
bufsz = self->fw_data_total_count + self->extend_size;