spapr: return from post_load method when RTC import fails
commite502202c9b6334343fe0004b7965d92e85ea1891
authorCédric Le Goater <clg@kaod.org>
Fri, 4 Jan 2019 13:30:50 +0000 (4 14:30 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Jan 2019 22:28:14 +0000 (9 09:28 +1100)
tree950b5e673e9545c2392de10453713fb678a6a2dd
parent3ff73aa24125f18b3d1b24423213cc7d63a11f90
spapr: return from post_load method when RTC import fails

The error value can be squashed by the section handling radix migration.
Simply bail out if an error occurs when the RTC offset is imported.

This fixes the Coverity issue CID 1398591.

Fixes: d39c90f5f3ae ("spapr: Fix migration of Radix guests")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c