Merge "power: fg-memif: fix an OOB access while getting number of partitions"