]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: Actually give up during locking failure
authorLi Pengcheng <lipengcheng8@huawei.com>
Sat, 5 Nov 2016 02:15:59 +0000 (10:15 +0800)
committerKees Cook <keescook@chromium.org>
Wed, 9 Nov 2016 00:44:33 +0000 (16:44 -0800)
commit300e306b7ffb374dcfc3335ddccc31dfd69398eb
tree21a2ac73eabb5a19694a617440a51e2cdd650a5c
parent71f83e9de55975751c0c82c8d8af1d67a9298d90
pstore: Actually give up during locking failure

Without a return after the pr_err(), dumps will collide when two threads
call pstore_dump() at the same time.

Signed-off-by: Liu Hailong <liuhailong5@huawei.com>
Signed-off-by: Li Pengcheng <lipengcheng8@huawei.com>
Signed-off-by: Li Zhong <lizhong11@hisilicon.com>
[kees: improved commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c