OSDN Git Service

ppc/pnv: check return value of blk_pwrite()
authorCédric Le Goater <clg@kaod.org>
Tue, 7 Jan 2020 17:18:08 +0000 (18:18 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 8 Jan 2020 01:01:02 +0000 (12:01 +1100)
commit3a688294e2c36575fd3e259a64a066b38e164cbb
tree7a84fc1634a25fd6a4c94f0558cefc6b0e0e889c
parentb91cad2f0751ab5c2e1b746a835ec0f45fec1c23
ppc/pnv: check return value of blk_pwrite()

When updating the PNOR file contents, we should check for a possible
failure of blk_pwrite().

Fixes Coverity issue CID 1412228.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20200107171809.15556-2-clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv_pnor.c