efi/pstore: Return error code (if any) from efi_pstore_write()
authorEvgeny Kalugin <evgeny.kalugin@intel.com>
Tue, 4 Apr 2017 16:02:42 +0000 (17:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 5 Apr 2017 10:27:25 +0000 (12:27 +0200)
commitfee929ba1c9386e524ed3abcc6d5f9b64381f959
tree1f254f52df07e5571ae9ef30a25b3f4fd7f68d0c
parent6e7300cff1c410dde7ac4354b6a0a8cb0a561e54
efi/pstore: Return error code (if any) from efi_pstore_write()

For some reason return value from actual variable setting was ignored.
With this change error code get transferred upwards through call stack.

Signed-off-by: Evgeny Kalugin <evgeny.kalugin@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20170404160245.27812-9-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/efi-pstore.c