All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ramoops: Remove pmsg case for write with write_buf function
@ 2016-09-28 14:21 Joel Fernandes
  2016-09-29 18:03 ` Mark Salyzyn
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Fernandes @ 2016-09-28 14:21 UTC (permalink / raw)
  To: linux-kernel
  Cc: Joel Fernandes, Mark Salyzyn, Kees Cook, Anton Vorontsov,
	Colin Cross, Tony Luck

From: Joel Fernandes <joelaf@google.com>

PMSG now uses ramoops_pstore_write_buf_user instead of write_buf.
Remove the case where we check PSTORE_TYPE_PMSG case in write_buf.

Cc: Mark Salyzyn <salyzyn@android.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Colin Cross <ccross@android.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Joel Fernandes <joelaf@google.com>
---
 fs/pstore/ram.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 751197d..519404c 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -287,11 +287,6 @@ static int notrace ramoops_pstore_write_buf(enum pstore_type_id type,
 			return -ENOMEM;
 		persistent_ram_write(cxt->fprz, buf, size, 1);
 		return 0;
-	} else if (type == PSTORE_TYPE_PMSG) {
-		if (!cxt->mprz)
-			return -ENOMEM;
-		persistent_ram_write(cxt->mprz, buf, size, 1);
-		return 0;
 	}
 
 	if (type != PSTORE_TYPE_DMESG)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ramoops: Remove pmsg case for write with write_buf function
  2016-09-28 14:21 [PATCH] ramoops: Remove pmsg case for write with write_buf function Joel Fernandes
@ 2016-09-29 18:03 ` Mark Salyzyn
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Salyzyn @ 2016-09-29 18:03 UTC (permalink / raw)
  To: Joel Fernandes, linux-kernel
  Cc: Joel Fernandes, Kees Cook, Anton Vorontsov, Colin Cross, Tony Luck

On 09/28/2016 07:21 AM, Joel Fernandes wrote:
> From: Joel Fernandes <joelaf@google.com>
>
> PMSG now uses ramoops_pstore_write_buf_user instead of write_buf.
> Remove the case where we check PSTORE_TYPE_PMSG case in write_buf.
Ack

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-29 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 14:21 [PATCH] ramoops: Remove pmsg case for write with write_buf function Joel Fernandes
2016-09-29 18:03 ` Mark Salyzyn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.