tools/arch/x86/intel_sdsi: Fix maximum meter bundle length
authorDavid E. Box <david.e.box@linux.intel.com>
Thu, 11 Apr 2024 02:58:52 +0000 (19:58 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 08:51:56 +0000 (10:51 +0200)
commita66f962f67ebbbdf7c82c6652180930c0169cf13
tree1f34cb9ed26166d75ad0785766701eab623d36dc
parent46b5e5eb1d41175bcf360d32f7b30f48cdbf99dc
tools/arch/x86/intel_sdsi: Fix maximum meter bundle length

The maximum number of bundles in the meter certificate was set to 8 which
is much less than the maximum. Instead, since the bundles appear at the end
of the file, set it based on the remaining file size from the bundle start
position.

Fixes: 7fdc03a7370f ("tools/arch/x86: intel_sdsi: Add support for reading meter certificates")
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240411025856.2782476-6-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
tools/arch/x86/intel_sdsi/intel_sdsi.c