Skip to content
Commit f88baf68 authored by Geliang Tang's avatar Geliang Tang Committed by Kees Cook
Browse files

ramoops: move spin_lock_init after kmalloc error checking



If cxt->pstore.buf allocated failed, no need to initialize
cxt->pstore.buf_lock. So this patch moves spin_lock_init() after the
error checking.

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent d771fdf9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment