ppc/pnv: check for OPAL firmware file presence
commit15fcedb26fce9cde3f3a2cec533101b6fe43f6e5
authorCédric Le Goater <clg@kaod.org>
Mon, 25 Sep 2017 08:58:25 +0000 (25 10:58 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Sep 2017 03:05:41 +0000 (27 13:05 +1000)
treea843cf84d926a2cacb3313dcfc4bb5b7c12baafb
parent5aec066c416bf8b2d977d2081d0a7540dda3b96f
ppc/pnv: check for OPAL firmware file presence

and exit before uselessly trying to load it if the file does not
exists.

Issue discovered by Coverity Scan.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c