Geliang Tang f88baf68eb 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: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
2016-09-08 15:01:13 -07:00
..
2015-10-22 08:59:18 -07:00
2015-10-22 08:59:18 -07:00
2016-09-08 15:01:10 -07:00
2016-09-08 15:01:10 -07:00