commit | f88baf68ebe5b2efced64725fd98548af9b8f510 | [log] [tgz] |
---|---|---|
author | Geliang Tang <geliangtang@gmail.com> | Tue Aug 30 20:24:42 2016 +0800 |
committer | Kees Cook <keescook@chromium.org> | Thu Sep 08 15:01:13 2016 -0700 |
tree | 5201d40100d0c6dedb3ed9244828804dfb682cb7 | |
parent | d771fdf94180de2bd811ac90cba75f0f346abf8d [diff] |
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>