]> asedeno.scripts.mit.edu Git - linux.git/commit
pstore/ram: Move initialization earlier
authorYue Hu <huyue2@yulong.com>
Wed, 23 Jan 2019 08:56:48 +0000 (16:56 +0800)
committerKees Cook <keescook@chromium.org>
Tue, 12 Feb 2019 20:10:43 +0000 (12:10 -0800)
commit1e0f67a96aedd0b5fbd3ae743e68a26606ea98e8
tree374370fe3ded31a8b5bd66f03a0970bb0aa09c9c
parent4c6c4d34536744f2c9e171ef5bb548a06a525501
pstore/ram: Move initialization earlier

Since only one single ramoops area allowed at a time, other probes
(like device tree) are meaningless, as it will waste CPU resources.
So let's check for being already initialized first.

Signed-off-by: Yue Hu <huyue2@yulong.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c