ACPI / PPTT: Caller initialize 'levels' for 'acpi_count_level'

commit bd500361a937c03a3da57178287ce543c8f3681b (ACPI: PPTT: Update
acpi_find_last_cache_level() to acpi_get_cache_info()) modified
'acpi_count_levels' to take 2 parameters, 'levels' and 'split_levels'
which would get populated with the total number of levels and split
levels for a given cpu node respectively. The 'levels' pointer passed
would be dereferenced and used as the starting level while the topology
is parsed. As of now, both 'acpi_pptt_get_cpumask_from_cache_id()' and
'find_acpi_cache_level_from_id()' are passing the address of an
uninitialized stack object as the 'levels' parameter. This leads to a
failure in MPAM MSC initialization. Resolve this by initializing the
object to 0 before passing its address.

Additionally, amend the description of 'acpi_count_level' to add more
clarity.

Reported-by: Shanker Donthineni <sdonthineni@nvidia.com>
Signed-off-by: Rohit Mathew <Rohit.Mathew@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
1 file changed