pstore: Warn on PSTORE_TYPE_PMSG using deprecated function
authorJoel Fernandes <joelaf@google.com>
Thu, 20 Oct 2016 07:34:02 +0000 (00:34 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 11 Nov 2016 18:36:46 +0000 (10:36 -0800)
commitd8991f51e55fd3c5b8ad055653a5998e53d4ec91
tree9588f96b17e7584833161aefd1025e7f8f40930f
parent109704492ef637956265ec2eb72ae7b3b39eb6f4
pstore: Warn on PSTORE_TYPE_PMSG using deprecated function

PMSG now uses ramoops_pstore_write_buf_user() instead of ...write_buf().
Print a ratelimited warning if gets accidentally called.

Signed-off-by: Joel Fernandes <joelaf@google.com>
[kees: adjusted commit log and added -EINVAL return]
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c