Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1616171 > unrolled thread

[PATCH 06/12] pstore: return error code (if any) from efi_pstore_write

Started byArd Biesheuvel <ard.biesheuvel@linaro.org>
First post2017-04-04 18:10 +0200
Last post2017-04-05 12:50 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 06/12] pstore: return error code (if any) from efi_pstore_write Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-04-04 18:10 +0200
    [tip:efi/core] efi/pstore: Return error code (if any) from  efi_pstore_write() tip-bot for Evgeny Kalugin <tipbot@zytor.com> - 2017-04-05 11:10 +0200
    [tip:efi/core] efi/pstore: Return error code (if any) from  efi_pstore_write() tip-bot for Evgeny Kalugin <tipbot@zytor.com> - 2017-04-05 12:50 +0200

#1616171 — [PATCH 06/12] pstore: return error code (if any) from efi_pstore_write

FromArd Biesheuvel <ard.biesheuvel@linaro.org>
Date2017-04-04 18:10 +0200
Subject[PATCH 06/12] pstore: return error code (if any) from efi_pstore_write
Message-ID<tszbR-78Z-47@gated-at.bofh.it>
From: Evgeny Kalugin <evgeny.kalugin@intel.com>

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>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 drivers/firmware/efi/efi-pstore.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c
index f402ba2eed46..6b5acefce6b3 100644
--- a/drivers/firmware/efi/efi-pstore.c
+++ b/drivers/firmware/efi/efi-pstore.c
@@ -274,9 +274,9 @@ static int efi_pstore_write(enum pstore_type_id type,
 	for (i = 0; i < DUMP_NAME_LEN; i++)
 		efi_name[i] = name[i];
 
-	efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
-			      !pstore_cannot_block_path(reason),
-			      size, psi->buf);
+	ret = efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
+				    !pstore_cannot_block_path(reason),
+				    size, psi->buf);
 
 	if (reason == KMSG_DUMP_OOPS)
 		efivar_run_worker();
-- 
2.9.3

[toc] | [next] | [standalone]


#1616741 — [tip:efi/core] efi/pstore: Return error code (if any) from efi_pstore_write()

Fromtip-bot for Evgeny Kalugin <tipbot@zytor.com>
Date2017-04-05 11:10 +0200
Subject[tip:efi/core] efi/pstore: Return error code (if any) from efi_pstore_write()
Message-ID<tsP6X-FR-61@gated-at.bofh.it>
In reply to#1616171
Commit-ID:  92d3757f1043f3213b2fef78437577d19b7de209
Gitweb:     http://git.kernel.org/tip/92d3757f1043f3213b2fef78437577d19b7de209
Author:     Evgeny Kalugin <evgeny.kalugin@intel.com>
AuthorDate: Tue, 4 Apr 2017 17:02:42 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 5 Apr 2017 09:27:51 +0200

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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c
index f402ba2..6b5acef 100644
--- a/drivers/firmware/efi/efi-pstore.c
+++ b/drivers/firmware/efi/efi-pstore.c
@@ -274,9 +274,9 @@ static int efi_pstore_write(enum pstore_type_id type,
 	for (i = 0; i < DUMP_NAME_LEN; i++)
 		efi_name[i] = name[i];
 
-	efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
-			      !pstore_cannot_block_path(reason),
-			      size, psi->buf);
+	ret = efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
+				    !pstore_cannot_block_path(reason),
+				    size, psi->buf);
 
 	if (reason == KMSG_DUMP_OOPS)
 		efivar_run_worker();

[toc] | [prev] | [next] | [standalone]


#1616833 — [tip:efi/core] efi/pstore: Return error code (if any) from efi_pstore_write()

Fromtip-bot for Evgeny Kalugin <tipbot@zytor.com>
Date2017-04-05 12:50 +0200
Subject[tip:efi/core] efi/pstore: Return error code (if any) from efi_pstore_write()
Message-ID<tsQFI-1vp-29@gated-at.bofh.it>
In reply to#1616171
Commit-ID:  fee929ba1c9386e524ed3abcc6d5f9b64381f959
Gitweb:     http://git.kernel.org/tip/fee929ba1c9386e524ed3abcc6d5f9b64381f959
Author:     Evgeny Kalugin <evgeny.kalugin@intel.com>
AuthorDate: Tue, 4 Apr 2017 17:02:42 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 5 Apr 2017 12:27:25 +0200

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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c
index f402ba2..6b5acef 100644
--- a/drivers/firmware/efi/efi-pstore.c
+++ b/drivers/firmware/efi/efi-pstore.c
@@ -274,9 +274,9 @@ static int efi_pstore_write(enum pstore_type_id type,
 	for (i = 0; i < DUMP_NAME_LEN; i++)
 		efi_name[i] = name[i];
 
-	efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
-			      !pstore_cannot_block_path(reason),
-			      size, psi->buf);
+	ret = efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
+				    !pstore_cannot_block_path(reason),
+				    size, psi->buf);
 
 	if (reason == KMSG_DUMP_OOPS)
 		efivar_run_worker();

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web