ppc/vof: Fix missed fields in VOF cleanup
commit7b8589d7ce7e23f26ff53338d575a5cbd7818e28
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:44 +0000 (8 14:19 +1000)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (6 11:19 +0200)
tree968c39ad81380b9a568ccfea6d9c6b2cdc4a3312
parent2c71b4f6049ef1ed8c75bce7091102be7209a473
ppc/vof: Fix missed fields in VOF cleanup

Failing to reset the of_instance_last makes ihandle allocation continue
to increase, which causes record-replay replay fail to match the
recorded trace.

Not resetting claimed_base makes VOF eventually run out of memory after
some resets.

Cc: Alexey Kardashevskiy <aik@ozlabs.ru>
Fixes: fc8c745d501 ("spapr: Implement Open Firmware client interface")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/vof.c