pstore: add vmalloc error check
authorGeliang Tang <geliangtang@163.com>
Tue, 20 Oct 2015 07:39:01 +0000 (00:39 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 21 Oct 2015 16:27:10 +0000 (09:27 -0700)
commit549b39a9e7ef3eee2d0895530f277c012abc7b43
tree742b9ce0b00b89b861b21c7c336bc848c5734a99
parent7379047d5585187d1288486d4627873170d0005a
pstore: add vmalloc error check

If vmalloc fails, make write_pmsg return -ENOMEM.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/pmsg.c