]> git.sur5r.net Git - u-boot/commit
gpt: fix error reporting on partition table write failures
authorRob Herring <robh@kernel.org>
Mon, 26 Jan 2015 15:43:15 +0000 (09:43 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 5 Mar 2015 16:17:53 +0000 (11:17 -0500)
commita150e6c9df04f8c5eb4c7f550a109e3e34aafa81
treee643c2248ea92b9cb207079016b786086d620ca3
parent694cc87b76b1063a2a7a8bd1809e990df0a469f8
gpt: fix error reporting on partition table write failures

The gpt command always reports success even if writing the partition table
failed. Propagate the return value of gpt_restore so we get proper status
reported.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Przemyslaw Marczak <p.marczak@samsung.com>
common/cmd_gpt.c